import Vue from "vue";
import Router from "vue-router";

Vue.use(Router);

/* Layout */
import Layout from "@/views/layout/Layout";
import Custom from "@/views/layout/Custom";
import User from "@/views/layout/User";
import Admin from "@/views/layout/Admin";
/* Router Modules */
// import componentsRouter from './modules/components'
// import chartsRouter from './modules/charts'
// import tableRouter from './modules/table'
// import nestedRouter from './modules/nested'

/** note: Submenu only appear when children.length>=1
 *  detail see  https://panjiachen.github.io/vue-element-admin-site/guide/essentials/router-and-nav.html
 **/

/**
* hidden: true                   if `hidden:true` will not show in the sidebar(default is false)
* alwaysShow: true               if set true, will always show the root menu, whatever its child routes length
*                                if not set alwaysShow, only more than one route under the children
*                                it will becomes nested mode, otherwise not show the root menu
* redirect: noredirect           if `redirect:noredirect` will no redirect in the breadcrumb
* name:'router-name'             the name is used by <keep-alive> (must set!!!)
* meta : {
    roles: ['admin','user']     will control the page roles (you can set multiple roles)
    title: 'title'               the name show in submenu and breadcrumb (recommend set)
    icon: 'svg-name'             the icon show in the sidebar,
    noCache: true                if true ,the page will no be cached(default is false)
  }
**/

const Base64 = require("js-base64").Base64;
const Cookies = require("js-cookie");
const storeMenu = Cookies.get("STORE_MENU");
// console.log("父节点富家大室",$route.query)
let patSetting = {
  channel: {
    H5: {
      open: true
    },
    wechat: {
      open: true
    },
    wxapp: {
      open: true
    },
    aliapp: {
      open: true
    },
    baiduapp: {
      open: true
    },
    toutiaoapp: {
      open: true
    },
    android: {
      open: true
    },
    ios: {
      open: true
    }
  },
  plugin: {
    spike: {
      open: true
    },
    groups: {
      open: true
    },
    luck: {
      open: true
    },
    kammi: {
      open: true
    },
    cashback: {
      open: true
    },
    bargain: {
      open: true
    },
    member: {
      open: true
    },
    diyposter: {
      open: true
    },
    redenvelopes:{
      open:true
    },
    cgp: {
      open: true
    },
    dealer:{
      open:true
    },
    blessing:{
      open:true
    },
    assist:{//任务宝
      open:true
    },
    reserve: {// 商品预约
      open: true
    },
    agent:{
      open:true
    },
    festival:{
      open:true
    },
    ticketing:{
      open:true,
    },
    live:{
      open:true,
    },
    falseUrl:{
      open:true,
    },
    timeCoupon:{
      open:true,
    },
    free:{
      open:true,
    },
    card_bag:{// 卡包
      open:true,
    },
    phonebill:{// 卡包
      open:true,
    },
    paymarketing:{
      open:true,
    }
  }
};
if (storeMenu && typeof storeMenu === "string") {
  const storeMenuBase = JSON.parse(Base64.decode(storeMenu));
  if (!!storeMenuBase && typeof storeMenuBase === "object") {
    // console.log("福袋后己方的11",patSetting.plugin.ticketing)
    // console.log("福袋后己方的22",patSetting.plugin.reserve)
    patSetting = storeMenuBase;
  }
}
export const constantRouterMap = [
  {
    path: "/redirect",
    component: Layout,
    hidden: true,
    children: [
      {
        path: "/redirect/:path*",
        component: () => import("@/views/redirect/index")
      }
    ]
  },
  {
    path: "/login",
    component: Admin,
    hidden: true,
    children: [
      {
        path: "/",
        name: "Login",
        meta: { title: "login", icon: "guide", noCache: true },
        component: () => import("@/views/login/index"),
        hidden: true
      },
      {
        path: "register",
        name: "Register",
        meta: { title: "register", icon: "guide", noCache: true },
        component: () => import("@/views/register/index"),
        hidden: true
      },
      {
        path: "forgot",
        name: "Forgot",
        meta: { title: "forgot", icon: "guide", noCache: true },
        component: () => import("@/views/forgot/index"),
        hidden: true
      }
    ]
  },
  {
    path: "/auth-redirect",
    component: () => import("@/views/login/authredirect"),
    hidden: true
  },
  {
    path: "/edition-list", // 用户登录后的平台列表
    component: User,
    redirect: "edition", // 首页
    meta: {
      title: "平台选择",
      roles: ["user"] // 展示用
    },
    hidden: true,
    children: [
      {
        path: "edition",
        component: () => import("@/views/edition-list/index"),
        name: "edition",
        meta: { title: "平台选择", icon: "dashboard", noCache: true }
      }
    ]
  },
  {
    path: "",
    component: Layout,
    redirect: "dashboard", // 首页
    hidden: false,
    meta: {
      title: "首页",
      icon: "dashboard",
      groupMenu: "概况"
      // roles: ['user'] // 展示用
    },
    children: [
      {
        path: "dashboard",
        component: () => import("@/views/dashboard/index"),
        name: "Dashboard",
        meta: { title: "概况", noCache: true, noDropdown: true }
      }
    ]
  },
  {
    path: "/401",
    component: () => import("@/views/errorPage/401"),
    hidden: true
  }
];

export default new Router({
  // mode: 'history', // require service support
  scrollBehavior: () => ({ y: 0 }),
  routes: constantRouterMap
});

export const asyncRouterMap = [
  {
    path: "/platform", // 平台
    component: Custom,
    redirect: "/platform/renovationList",
    meta: {
      title: "平台",
      icon: "platform",
      subtitle: "装修平台",
      groupMenu: "装修平台"
      // roles: ['user'] // 展示用
    },
    children: [
      {
        path: "renovationList", // 装修列表
        component: () => import("@/views/platform/renovationList"),
        name: "renovationList",
        meta: {
          title: "装修列表",
          groupMenuTitle: "装修平台",
          groupTitle: "装修平台",
          icon: "demopage",
          noCache: true
        }
      },
      {
        path: "renovationHome", // 装修平台
        component: () => import("@/views/platform/renovationHome"),
        name: "renovationHome",
        hidden: true,
        meta: {
          title: "页面管理",
          icon: "demopage",
          noCache: true,
          isCustom: true,
          toRoote: { path: "/platform/renovationList", open: ["/platform"] }
        }
      },
      {
        path: "renovationBmenu", // 导航菜单
        component: () => import("@/views/platform/renovationBmenu"),
        name: "renovationBmenu",
        meta: { title: "导航菜单", icon: "recycle", noCache: true }

        // meta: { title: '导航菜单', 'groupMenuTitle': '装修平台', groupTitle: '导航菜单', icon: 'recycle', noCache: true }
      },
      {
        path: "pageLink", // 页面链接
        component: () => import("@/views/platform/pageLink"),
        name: "pageLink",
        meta: { title: "页面链接", icon: "recycle", noCache: true }

        // meta: { title: '页面链接', 'groupMenuTitle': '装修平台', groupTitle: '页面链接', icon: 'recycle', noCache: true }
      },
      {
        path: "platformAdmin", // 平台管理员
        component: () => import("@/views/platform/platformAdmin"),
        name: "platformAdmin",
        meta: { title: "平台管理员", icon: "recycle", noCache: true }
        // meta: { title: '平台管理员', 'groupMenuTitle': '装修平台', groupTitle: '平台管理员', icon: 'recycle', noCache: true }
      },
      // {
      //   path: 'collectCoupons', // 领劵中心
      //   component: () => import('@/views/platform/collectCoupons'),
      //   name: 'collectCoupons',
      //   meta: { title: '领劵中心', icon: 'recycle', noCache: true }
      //   // meta: { title: '平台管理员', 'groupMenuTitle': '装修平台', groupTitle: '平台管理员', icon: 'recycle', noCache: true }
      // }
      // {
      //   path: 'goodshopcarousel', // 好店轮播图
      //   component: () => import('@/views/platform/goodshopcarousel'),
      //   name: 'goodshopcarousel',
      //   meta: { title: '好店轮播图', icon: 'recycle', noCache: true }
      // },
      // {
      //   path: 'goodshopcarouselAdd', // 好店轮播图
      //   component: () => import('@/views/platform/goodshopcarouselAdd'),
      //   hidden: true,
      //   name: 'goodshopcarouselAdd',
      //   meta: { title: '好店轮播图', icon: 'recycle', noCache: true, toRoote: { path: '/platform/goodshopcarousel', open: ['/platform'] } }
      // },
      // {
      //   path: 'business', // 商家管理
      //   component: () => import('@/views/merchant/business'),
      //   name: 'business',
      //   meta: { title: '商家列表', 'groupMenuTitle': '商家中心', groupTitle: '商家管理', icon: 'demopage', noCache: true }
      // },
      // {
      //   path: 'businessAdd', // 门店列表
      //   component: () => import('@/views/merchant/businessAdd'),
      //   name: 'businessAdd',
      //   hidden: true,
      //   meta: { title: '商家管理', icon: 'demopage', noCache: true, toRoote: { path: '/merchant/business', open: ['/merchant'] } }
      // },
      // {
      //   path: 'recyclePlatform', // 悬浮菜单
      //   component: () => import('@/views/platform/managementPlatform'),
      //   name: 'recyclePlatform',
      //   meta: { title: '悬浮菜单', icon: 'demopage', noCache: true }
      // }
      // {
      //   path: 'platformSettings', // 平台风格
      //   component: () => import('@/views/platform/renovationHome'),
      //   name: 'platformSettings',
      //   meta: { title: '平台风格', groupTitle: '平台主题', icon: 'demopage', noCache: true }
      // }
      // {
      //   path: 'recyclePlatformDetail', // 平台模板
      //   component: () => import('@/views/platform/recyclePlatform'),
      //   name: 'recyclePlatformDetail',
      //   meta: { title: '平台模板', icon: 'demopage', noCache: true }
      // }
      // {
      //   path: 'recyclePlatformDetail', // 回收站详情
      //   component: () => import('@/views/platform/recyclePlatformDetail'),
      //   name: 'recyclePlatformDetail',
      //   meta: { title: '回收站', icon: 'demopage', noCache: true, toRoote: { path: '/platform/recyclePlatform', open: ['/platform'] }},
      //   hidden: true
      // },
      // {
      //   path: 'platformSettings', // 平台设置
      //   component: () => import('@/views/platform/platformSettings'),
      //   name: 'platformSettings',
      //   meta: { title: '平台设置',  groupTitle: '设置', icon: 'demopage', noCache: true }
      // }
    ]
  },
  {
    path: "/merchant", // 商家
    component: Layout,
    redirect: "/merchant/business",
    meta: {
      title: "商家",
      icon: "merchant",
      // roles: ['user'],
      subtitle: "商家管理",
      groupMenu: "商家中心"
    },
    children: [
      {
        path: "business", // 商家管理
        component: () => import("@/views/merchant/business"),
        name: "business",
        meta: {
          title: "商家列表",
          groupMenuTitle: "商家中心",
          groupTitle: "商家管理",
          icon: "demopage",
          noCache: true
        }
      },
      {
        path: "businessAdd", // 门店列表
        component: () => import("@/views/merchant/businessAdd"),
        name: "businessAdd",
        hidden: true,
        meta: {
          title: "商家管理",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/merchant/business", open: ["/merchant"] }
        }
      },
      {
        path: "enteringMerchant", // 商家入驻
        component: () => import("@/views/merchant/enteringMerchant"),
        name: "enteringMerchant",
        meta: { title: "商家入驻", icon: "demopage", noCache: true }
      },

      {
        path: "storeListMerchant", // 门店列表
        component: () => import("@/views/merchant/storeListMerchant"),
        name: "storeListMerchant",
        hidden: true,
        meta: {
          title: "门店列表",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/merchant/business", open: ["/merchant"] }
        }
      },
      {
        path: "storeListMerchantAdd", // 门店列表
        component: () => import("@/views/merchant/storeListMerchantAdd"),
        name: "storeListMerchantAdd",
        hidden: true,
        meta: {
          title: "门店列表",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/merchant/business", open: ["/merchant"] }
        }
      },
      {
        path: "merchantClerkList", // 店员列表
        component: () => import("@/views/merchant/merchantClerkList"),
        name: "merchantClerkList",
        hidden: true,
        meta: {
          title: "店员列表",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/merchant/business", open: ["/merchant"] }
        }
      },
      {
        path: "merchantSettlement", // 结算列表
        component: () => import("@/views/merchant/merchantSettlement"),
        name: "merchantSettlement",
        meta: {
          title: "结算列表",
          groupTitle: "商家结算",
          icon: "demopage",
          noCache: true
        }
      },
      {
        path: 'merchantWithdraw', // 商家提现申请
        component: () => import('@/views/merchant/merchantWithdraw'),
        name: 'merchantWithdraw',
        // meta: { title: '余额申请', icon: 'demopage', noCache: true }
        meta: { title: '提现申请', icon: 'demopage', noCache: true }
      },
      {
        path: "merchantBalance", // 商家提现申请
        component: () => import("@/views/merchant/merchantBalance"),
        name: "merchantBalance",
        meta: { title: "余额提现", icon: "demopage", noCache: true }
      },
      {
        path: "merchantSettlementBill", // 入账账单
        component: () => import("@/views/merchant/merchantSettlementBill"),
        name: "merchantSettlementBill",
        hidden: true,
        meta: {
          title: "入账账单",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/merchant/merchantSettlement", open: ["/merchant"] }
        }
      },
      {
        path: "merchantSettlementBillDetail", // 入账详情
        component: () =>
          import("@/views/merchant/merchantSettlementBillDetail"),
        name: "merchantSettlementBillDetail",
        hidden: true,
        meta: {
          title: "入账详情",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/merchant/merchantSettlement", open: ["/merchant"] }
        }
      },
      // {
      //   path: 'probe', // 探店列表
      //   component: () => import('@/views/merchant/Probe'),
      //   name: 'probe',
      //   meta: { title: '探店列表', groupTitle: '探店', icon: 'demopage', noCache: true }
      // },
      // {
      //   path: 'probeAdd', // 探店
      //   component: () => import('@/views/merchant/probeAdd'),
      //   name: 'probeAdd',
      //   hidden: true,
      //   meta: { title: '探店', icon: 'demopage', noCache: true, toRoote: { path: '/merchant/probe', open: ['/merchant'] }}
      // },
      // {
      //   path: 'probeTopic', // 探店话题
      //   component: () => import('@/views/merchant/probeTopic'),
      //   name: 'probeTopic',
      //   meta: { title: '探店话题', icon: 'demopage', noCache: true }
      // },
      // {
      //   path: 'probeComment', // 探店话题
      //   component: () => import('@/views/merchant/probeComment'),
      //   name: 'probeComment',
      //   meta: { title: '探店评论', icon: 'demopage', noCache: true }
      // },
      {
        path: "merchantSetting", // 商家设置
        component: () => import("@/views/merchant/merchantSetting"),
        name: "merchantSetting",
        meta: {
          title: "基础设置",
          groupTitle: "设置",
          icon: "demopage",
          noCache: true
        }
      },
      {
        path: "settlementSetting", // 商家设置
        component: () => import("@/views/merchant/settlementSetting"),
        name: "settlementSetting",
        meta: {
          title: "结算设置",
          // groupTitle: "设置",
          icon: "demopage",
          noCache: true
        }
      },
      {
        path: "goodshopcarousel", // 好店轮播图
        component: () => import("@/views/merchant/goodshopcarousel"),
        name: "goodshopcarousel",
        meta: {
          title: "好店轮播图",
          groupTitle: "商圈好店",
          icon: "recycle",
          noCache: true
        }
      },
      {
        path: "goodshopcarouselAdd", // 好店轮播图
        component: () => import("@/views/merchant/goodshopcarouselAdd"),
        hidden: true,
        name: "goodshopcarouselAdd",
        meta: {
          title: "好店轮播图",
          icon: "recycle",
          noCache: true,
          toRoote: { path: "/merchant/goodshopcarousel", open: ["/merchant"] }
        }
      },
      {
        path: "classification", // 商家分类列表
        component: () => import("@/views/merchant/classification"),
        name: "classification",
        meta: { title: "分类列表", icon: "demopage", noCache: true }
      },
      {
        path: "districtlist", // 商家商圈列表
        component: () => import("@/views/merchant/districtlist"),
        name: "districtlist",
        meta: { title: "商圈列表", icon: "demopage", noCache: true }
      },
      {
        path: "storelist", // 门店推荐
        component: () => import("@/views/merchant/storelist"),
        name: "storelist",
        meta: { title: "门店推荐", icon: "demopage", noCache: true }
      }
      // {
      //   path: 'goodsettings', // 门店推荐
      //   component: () => import('@/views/merchant/goodsettings'),
      //   name: 'goodsettings',
      //   meta: { title: '好店设置', icon: 'demopage', noCache: true }
      // }
    ]
  },
  {
    path: "/user", // 用户
    component: Layout,
    redirect: "/user/managementUser",
    meta: {
      title: "用户",
      icon: "users",
      // roles: ['user'],
      subtitle: "用户管理",
      groupMenu: "用户中心"
    },
    children: [
      {
        path: "managementUser", // 用户管理
        component: () => import("@/views/user/managementUser"),
        name: "managementUser",
        meta: {
          title: "用户列表",
          groupMenuTitle: "用户中心",
          groupTitle: "用户管理",
          icon: "demopage",
          noCache: true
        }
      },
      {
        path: "managementUserEdit", // 用户管理/查看用户
        component: () => import("@/views/user/managementUserEdit"),
        name: "managementUserEdit",
        hidden: true,
        meta: {
          title: "用户查看",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/user/managementUser", open: ["/user"] }
        }
      },
      {
        path: "userPurchasePower", // 购买力
        component: () => import("@/views/user/userPurchasePower"),
        name: "userPurchasePower",
        hidden: true,
        meta: { title: "购买力", icon: "demopage", noCache: true }
      },
      {
        path: "userLabel", // 用户标签
        component: () => import("@/views/user/userLabel"),
        name: "userLabel",
        meta: { title: "用户标签", icon: "demopage", noCache: true }
      },
      {
        path: "userBalance", // 积分余额
        component: () => import("@/views/user/userBalance"),
        name: "userBalance",
        meta: { title: "积分余额", icon: "demopage", noCache: true }
      },
    ]
  },
  {
    path: "/merchandise", // 商品
    component: Layout,
    redirect: "/merchandise/merchandiseManagement",
    meta: {
      title: "商品",
      icon: "merchandise",
      groupMenu: "商品管理"
      // roles: ['user']
    },

    children: [
      {
        path: "merchandiseManagement", // 商品管理
        component: () => import("@/views/merchandise/merchandiseManagement"),
        name: "merchandiseManagement",
        meta: {
          title: "商品列表",
          groupMenuTitle: "商品管理",
          groupTitle: "商品管理",
          icon: "demopage",
          noCache: true
        }
      },
      {
        path: "merchandiseManagementAdd", // 分类添加
        component: () => import("@/views/merchandise/merchandiseManagementAdd"),
        name: "merchandiseManagementAdd",
        hidden: true,
        meta: {
          title: "商品添加",
          icon: "demopage",
          noCache: true,
          toRoote: {
            path: "/merchandise/merchandiseManagement",
            open: ["/merchandise"]
          }
        }
      },
      {
        path: "commodityaudit", // 商品列表
        component: () => import("@/views/merchandise/commodityaudit"),
        name: "commodityaudit",
        meta: { title: "商品审核", icon: "demopage", noCache: true }
      },
      // {
      //   path: 'commodityaudit', // 商品列表
      //   component: () => import('@/views/merchandise/commodityaudit'),
      //   name: 'commodityaudit',
      //   meta: { title: '商品审核', icon: 'demopage', noCache: true }
      // },
      {
        path: "subscribe", // 预约
        component: () => import("@/views/merchandise/subscribe"),
        name: "subscribe",
        hidden: true,
        meta: {
          title: "预约",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/merchandise/subscribe", open: ["/merchandise"] }
        }
      },
      {
        path: "calendarprice", // 预约
        component: () => import("@/views/merchandise/calendarprice"),
        name: "calendarprice",
        hidden: true,
        meta: {
          title: "日历价",
          icon: "demopage",
          noCache: true,
          toRoote: {
            path: "/merchandise/calendarprice",
            open: ["/merchandise"]
          }
        }
      },

      {
        path: "recycleMerchandise", // 商品列表
        component: () => import("@/views/merchandise/recycleMerchandise"),
        name: "recycleMerchandise",
        meta: { title: "商品回收站", icon: "demopage", noCache: true }
      },
      {
        path: "merchandiseCategories", // 商品分类
        component: () => import("@/views/merchandise/merchandiseCategories"),
        name: "merchandiseCategories",
        meta: {
          title: "商品分类",
          groupTitle: "其他信息",
          icon: "demopage",
          noCache: true
        }
      },
      {
        path: "merchandiseCategoriesAdd", // 分类添加
        component: () => import("@/views/merchandise/merchandiseCategoriesAdd"),
        name: "merchandiseCategoriesAdd",
        hidden: true,
        meta: {
          title: "分类添加",
          icon: "demopage",
          noCache: true,
          toRoote: {
            path: "/merchandise/merchandiseCategories",
            open: ["/merchandise"]
          }
        }
      },
      {
        path: "merchandiseCategoriesLowerAdd", // 分类添加(下级)
        component: () =>
          import("@/views/merchandise/merchandiseCategoriesLowerAdd"),
        name: "merchandiseCategoriesLowerAdd",
        hidden: true,
        meta: {
          title: "分类添加",
          icon: "demopage",
          noCache: true,
          toRoote: {
            path: "/merchandise/merchandiseCategories",
            open: ["/merchandise"]
          }
        }
      },
      {
        path: "servingMerchandise", // 商品服务
        component: () => import("@/views/merchandise/servingMerchandise"),
        name: "servingMerchandise",
        meta: { title: "商品服务", icon: "demopage", noCache: true }
      },
      {
        path: "servingMerchandiseAdd", // 服务添加
        component: () => import("@/views/merchandise/servingMerchandiseAdd"),
        name: "servingMerchandiseAdd",
        hidden: true,
        meta: {
          title: "服务添加",
          icon: "demopage",
          noCache: true,
          toRoote: {
            path: "/merchandise/servingMerchandiseAdd",
            open: ["/merchandise"]
          }
        }
      },
      {
        path: "parameterMerchandise", // 商品参数
        component: () => import("@/views/merchandise/parameterMerchandise"),
        name: "parameterMerchandise",
        meta: { title: "商品参数", icon: "demopage", noCache: true }
      },
      {
        path: "parameterMerchandiseAdd", // 分类添加(下级)
        component: () => import("@/views/merchandise/parameterMerchandiseAdd"),
        name: "parameterMerchandiseAdd",
        hidden: true,
        meta: {
          title: "参数添加",
          icon: "demopage",
          noCache: true,
          toRoote: {
            path: "/merchandise/parameterMerchandiseAdd",
            open: ["/merchandise"]
          }
        }
      },
      {
        path: "recommendGoods", // 商品推荐
        component: () => import("@/views/merchandise/recommendGoods"),
        name: "recommendGoods",
        meta: { title: "商品推荐", icon: "demopage", noCache: true }
      },
      {
        path: "community", // 社群
        component: () => import("@/views/merchandise/community"),
        name: "community",
        meta: {
          title: "社群管理",
          groupTitle: "商品工具",
          icon: "demopage",
          noCache: true
        }
      },
      // {
      //   path: 'customer', // 客服
      //   component: () => import('@/views/merchandise/customer'),
      //   name: 'customer',
      //   meta: { title: '客服设置', icon: 'demopage', noCache: true }
      // },
      // {
      //   path: 'customerAdd',
      //   component: () => import('@/views/merchandise/customerAdd'),
      //   name: 'cucustomerAddstomer',
      //   hidden: true,
      //   meta: { title: '客服设置', icon: 'demopage', noCache: true }
      // },
      {
        path: "communityAdd", // 社群
        component: () => import("@/views/merchandise/communityAdd"),
        name: "communityAdd",
        hidden: true,
        meta: {
          title: "社群",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/merchandise/community", open: ["/merchandise"] }
        }
      },
      {
        path: "evaluationManagement", // 评价管理
        component: () => import("@/views/merchandise/evaluationManagement"),
        name: "evaluationManagement",
        meta: { title: "评价管理", icon: "demopage", noCache: true }
      },
      {
        path: "evaluationManagementDetail", // 分类添加(下级)
        component: () =>
          import("@/views/merchandise/evaluationManagementDetail"),
        name: "evaluationManagementDetail",
        hidden: true,
        meta: {
          title: "评价管理",
          icon: "demopage",
          noCache: true,
          toRoote: {
            path: "/merchandise/evaluationManagement",
            open: ["/merchandise"]
          }
        }
      },
      {
        path: "evaluationManagementAdd", // 分类添加(下级)
        component: () => import("@/views/merchandise/evaluationManagementAdd"),
        name: "evaluationManagementAdd",
        hidden: true,
        meta: {
          title: "评价管理",
          icon: "demopage",
          noCache: true,
          toRoote: {
            path: "/merchandise/evaluationManagement",
            open: ["/merchandise"]
          }
        }
      },

      {
        path: "goodsSetting", // 商品设置
        component: () => import("@/views/merchandise/goodsSetting"),
        name: "goodsSetting",
        meta: { title: "商品设置", icon: "demopage", noCache: true }
      }
    ]
  },
  {
    path: "/orders", // 订单
    component: Layout,
    redirect: "/orders/ordersVerificationManagement",
    meta: {
      title: "订单",
      icon: "orders",
      groupMenu: "订单中心"
    },
    children: [
      {
        path: "ordersVerificationManagement", // 订单管理-核销订单
        component: () => import("@/views/orders/ordersManagement"),
        name: "ordersVerificationManagement",
        meta: {
          title: "核销订单",
          groupMenuTitle: "订单中心",
          groupTitle: "订单管理",
          icon: "demopage",
          noCache: true
        }
      },
      {
        path: "ordersComeStoreManagement", // 订单管理-自提订单
        component: () => import("@/views/orders/ordersManagement"),
        name: "ordersComeStoreManagement",
        meta: { title: "自提订单", icon: "demopage", noCache: true }
      },
      {
        path: "ordersExpressManagement", // 订单管理-快递订单
        component: () => import("@/views/orders/ordersManagement"),
        name: "ordersExpressManagement",
        meta: { title: "快递订单", icon: "demopage", noCache: true }
      },
      {
        path: "ordersCardPasswordManagement", // 卡密管理-卡密订单
        component: () => import("@/views/orders/ordersManagement"),
        name: "ordersCardPasswordManagement",
        meta: { title: "卡密订单", icon: "demopage", noCache: true }
      },
      {
        path: "ordersGroupManagement", // 团购订单
        component: () => import("@/views/orders/ordersManagement"),
        name: "ordersGroupManagement",
        meta: { title: "团购订单", icon: "demopage", noCache: true }
      },
      {
        path: "ordersTicketingManagement", //票务订单
        component: () => import("@/views/orders/ordersManagement"),
        name: "ordersTicketingManagement",
        meta: { title: "票务订单", icon: "demopage", noCache: true }
      },

      {
        path: "subscribeList", // 预约列表
        component: () => import("@/views/orders/subscribeList"),
        name: "subscribeList",
        hidden: patSetting.plugin.reserve
          ? !patSetting.plugin.reserve.open
          : true,
        meta: {
          title: "预约列表",
          groupTitle: "预约管理",
          icon: "demopage",
          noCache: true
        }
      },
      {
        path: "ordersVerificationManagementDetail", // 核销订单详情
        component: () => import("@/views/orders/ordersManagementDetail"),
        name: "ordersVerificationManagementDetail",
        hidden: true,
        meta: {
          title: "订单详情",
          icon: "demopage",
          noCache: true,
          toRoote: {
            path: "/orders/ordersVerificationManagement",
            open: ["/orders"]
          }
        }
      },
      {
        path: "ordersComeStoreManagementDetail", // 自提订单详情
        component: () => import("@/views/orders/ordersManagementDetail"),
        name: "ordersComeStoreManagementDetail",
        hidden: true,
        meta: {
          title: "订单详情",
          icon: "demopage",
          noCache: true,
          toRoote: {
            path: "/orders/ordersComeStoreManagement",
            open: ["/orders"]
          }
        }
      },
      {
        path: "ordersExpressManagementDetail", // 快递订单详情
        component: () => import("@/views/orders/ordersManagementDetail"),
        name: "ordersManagementDetail",
        hidden: true,
        meta: {
          title: "订单详情",
          icon: "demopage",
          noCache: true,
          toRoote: {
            path: "/orders/ordersExpressManagement",
            open: ["/orders"]
          }
        }
      },
      {
        path: "ordersCardPasswordManagementDetail", // 卡密订单详情
        component: () => import("@/views/orders/ordersManagementDetail"),
        name: "ordersCardPasswordManagementDetail",
        hidden: true,
        meta: {
          title: "订单详情",
          icon: "demopage",
          noCache: true,
          toRoote: {
            path: "/orders/ordersCardPasswordManagement",
            open: ["/orders"]
          }
        }
      },
      {
        path: "ordersGroupManagementDetail", // 团购订单详情
        component: () => import("@/views/orders/ordersManagementDetail"),
        name: "ordersGroupManagementDetail",
        hidden: true,
        meta: {
          title: "订单详情",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/orders/ordersGroupManagement", open: ["/orders"] }
        }
      },
      {
        path: "ordersManagementVerification", // 订单详情核销记录
        component: () => import("@/views/orders/ordersManagementVerification"),
        name: "ordersManagementVerification",
        hidden: true,
        meta: {
          title: "核销记录",
          icon: "demopage",
          noCache: true,
          toRoote: {
            path: "/orders/ordersVerificationManagement",
            open: ["/orders"]
          }
        }
      },
      {
        path: "afterSale", // 售后维权
        component: () => import("@/views/orders/afterSale"),
        name: "afterSale",
        meta: {
          title: "售后维权",
          groupTitle: "其他信息",
          icon: "demopage",
          noCache: true,
          isNews: false
        }
      },
      {
        path: "afterSaleDetail", // 快递订单详情
        component: () => import("@/views/orders/afterSaleDetail"),
        name: "afterSaleDetail",
        hidden: true,
        meta: {
          title: "订单详情",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/orders/afterSale", open: ["/orders"] }
        }
      },
      {
        path: "bulkShipment", // 批量发货
        component: () => import("@/views/orders/bulkShipment"),
        name: "bulkShipment",
        meta: { title: "批量发货", icon: "demopage", noCache: true }
      },
      {
        path: "afterSaleReason", // 售后原因
        component: () => import("@/views/orders/afterSaleReason"),
        name: "afterSaleReason",
        meta: { title: "售后原因", icon: "demopage", noCache: true }
      },
      {
        path: "expressDelivery", // 快递发货
        component: () => import("@/views/orders/expressDelivery"),
        name: "expressDelivery",
        meta: {
          title: "快递发货",
          groupTitle: "订单设置",
          icon: "demopage",
          noCache: true
        }
      },
      {
        path: "expressDeliveryAdd", // 快递发货添加
        component: () => import("@/views/orders/expressDeliveryAdd"),
        name: "expressDeliveryAdd",
        hidden: true,
        meta: {
          title: "模板",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/orders/expressDelivery", open: ["/orders"] }
        }
      },
      {
        path: "comeStore", // 到店自提
        component: () => import("@/views/orders/comeStore"),
        name: "comeStore",
        meta: { title: "到店自提", icon: "demopage", noCache: true }
      },
      {
        path: "comeStoreAdd", // 到店自提添加
        component: () => import("@/views/orders/comeStoreAdd"),
        name: "comeStoreAdd",
        hidden: true,
        meta: {
          title: "自提点",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/orders/comeStore", open: ["/orders"] }
        }
      },
      {
        path: "paySetting", // 交易设置
        component: () => import("@/views/orders/paySetting"),
        name: "paySetting",
        meta: { title: "交易设置", icon: "demopage", noCache: true }
      }
    ]
  },
  {
    path: "/distribution", // 分销
    component: Layout,
    redirect: "/distribution/distributorApplication",
    hidden: true,
    meta: {
      title: "分销",
      icon: "distribution",
      groupMenu: "分销中心"
    },
    children: [
      {
        path: "distributorApplication", // 分销申请
        component: () => import("@/views/distribution/distributorApplication"),
        name: "distributorApplication",
        meta: {
          title: "分销申请",
          groupMenuTitle: "分销中心",
          groupTitle: "分销员",
          icon: "demopage",
          noCache: true
        }
      },
      {
        path: "distributorUser", // 分销用户
        component: () => import("@/views/distribution/distributorUser"),
        name: "distributorUser",
        meta: { title: "分销用户", icon: "demopage", noCache: true }
      },
      {
        path: "offline", // 分销下线列表
        component: () => import("@/views/distribution/offline"),
        name: "offline",
        hidden: true,
        meta: {
          title: "下线列表",
          icon: "demopage",
          noCache: true,
          toRoote: {
            path: "/distribution/distributorUser",
            open: ["/distribution"]
          }
        }
      },
      {
        path: "distributorMerchandise", // 分销商品
        component: () => import("@/views/distribution/distributorMerchandise"),
        name: "distributorMerchandise",
        meta: {
          title: "分销商品",
          groupTitle: "分销管理",
          icon: "demopage",
          noCache: true
        }
      },
      {
        path: "distributorMerchandiseSetting", // 分销佣金设置
        component: () =>
          import("@/views/distribution/distributorMerchandiseSetting"),
        name: "distributorMerchandiseSetting",
        hidden: true,
        meta: {
          title: "分销佣金设置",
          icon: "demopage",
          noCache: true,
          toRoote: {
            path: "/distribution/distributorMerchandise",
            open: ["/distribution"]
          }
        }
      },
      {
        path: "distributorVip", // 分销会员卡
        component: () => import("@/views/distribution/distributorVip"),
        name: "distributorVip",
        meta: { title: "分销会员卡", icon: "demopage", noCache: true }
      },
      {
        path: "distributorVipSetting", // 分销会员佣金设置
        component: () => import("@/views/distribution/distributorVipSetting"),
        name: "distributorVipSetting",
        hidden: true,
        meta: {
          title: "分销分销会员佣金设置",
          icon: "demopage",
          noCache: true,
          toRoote: {
            path: "/distribution/distributorVip",
            open: ["/distribution"]
          }
        }
      },
      {
        path: "distributorOrders", // 分销订单
        component: () => import("@/views/distribution/distributorOrders"),
        name: "distributorOrders",
        meta: { title: "分销订单", icon: "demopage", noCache: true }
      },
     
      {
        path: "withdrawalApplication", // 提现申请
        component: () => import("@/views/distribution/withdrawalApplication"),
        name: "withdrawalApplication",
        meta: { title: "提现申请", icon: "demopage", noCache: true }
      },
      {
        path: "distributorSetting", // 分销设置
        component: () => import("@/views/distribution/distributorSetting"),
        name: "distributorSetting",
        meta: {
          title: "分销设置",
          groupTitle: "设置",
          icon: "demopage",
          noCache: true
        }
      },
      {
        path: "distributorLevel", // 分销dj
        component: () => import("@/views/distribution/distributorLevel"),
        name: "distributorLevel",
        meta: { title: "分销等级", icon: "demopage", noCache: true }
      },
      {
        path: "distributorLevelAdd", // 分销djadd
        component: () => import("@/views/distribution/distributorLevelAdd"),
        name: "distributorLevelAdd",
        hidden: true,
        meta: {
          title: "分销等级修改",
          icon: "demopage",
          noCache: true,
          toRoote: {
            path: "/distribution/distributorLevel",
            open: ["/distribution"]
          }
        }
      }
      // {
      //   path: 'distributorPoster', // 分销海报
      //   component: () => import('@/views/distribution/distributorPoster'),
      //   name: 'distributorPoster',
      //   meta: { title: '分销海报', icon: 'demopage', noCache: true }
      // }
    ]
  },
  {
    path: "/recycle", // 回收站
    component: Custom,
    redirect: "/recycle/recycleRenovationList",
    meta: {
      title: "回收站",
      icon: "recycle",
      groupMenu: "回收站"
      // roles: ['user']
    },
    hidden: true,
    children: [
      {
        path: "recycleRenovationList", // 装修列表
        component: () => import("@/views/recycle/recycleRenovationList"),
        name: "recycleRenovationList",
        meta: {
          title: "装修回收站",
          groupMenuTitle: "回收站",
          groupTitle: "回收站",
          icon: "demopage",
          noCache: true
        }
      },
      {
        path: "recycleMerchant", // 商家回收站
        component: () => import("@/views/recycle/recycleMerchant"),
        name: "recycleMerchant",
        meta: { title: "商家回收站", icon: "demopage", noCache: true }
      },
      {
        path: "recycleStoreList", // 门店回收站
        component: () => import("@/views/recycle/recycleStoreList"),
        name: "recycleStoreList",
        meta: { title: "门店回收站", icon: "demopage", noCache: true }
      },
      {
        path: "recycleClerkList", // 店员回收站
        component: () => import("@/views/recycle/recycleClerkList"),
        name: "recycleClerkList",
        meta: { title: "店员回收站", icon: "demopage", noCache: true }
      },
      {
        path: "recycleUserLabel", // 用户标签回收站
        component: () => import("@/views/recycle/recycleUserLabel"),
        name: "recycleUserLabel",
        meta: { title: "用户标签回收站", icon: "demopage", noCache: true }
      },
      {
        path: "recycleCategories", // 商品分类
        component: () => import("@/views/recycle/recycleCategories"),
        name: "recycleCategories",
        meta: { title: "商品分类回收站", icon: "demopage", noCache: true }
      },
      {
        path: "recycleGoodsServing", // 商品服务回收站
        component: () => import("@/views/recycle/recycleGoodsServing"),
        name: "recycleGoodsServing",
        meta: { title: "商品服务回收站", icon: "demopage", noCache: true }
      },
      {
        path: "recycleGoodsParameter", // 商品参数回收站
        component: () => import("@/views/recycle/recycleGoodsParameter"),
        name: "recycleGoodsParameter",
        meta: { title: "商品参数回收站", icon: "demopage", noCache: true }
      },
      {
        path: "recycleEvaluation", // 评价回收站
        component: () => import("@/views/recycle/recycleEvaluation"),
        name: "recycleEvaluation",
        meta: { title: "评价回收站", icon: "demopage", noCache: true }
      },
      {
        path: "recycleAfterSaleReason", // 售后原因回收站
        component: () => import("@/views/recycle/recycleAfterSaleReason"),
        name: "recycleAfterSaleReason",
        meta: { title: "售后原因回收站", icon: "demopage", noCache: true }
      },
      {
        path: "recycleExpressDelivery", // 快递发货回收站
        component: () => import("@/views/recycle/recycleExpressDelivery"),
        name: "recycleExpressDelivery",
        meta: { title: "快递发货回收站", icon: "demopage", noCache: true }
      },
      {
        path: "recycleDistributorUser", // 分销用户回收站
        component: () => import("@/views/recycle/recycleDistributorUser"),
        name: "recycleDistributorUser",
        meta: { title: "分销用户回收站", icon: "demopage", noCache: true }
      },
      {
        path: "recycleCouponMarketing", // 优惠券回收站
        component: () => import("@/views/recycle/recycleCouponMarketing"),
        name: "recycleCouponMarketing",
        meta: { title: "优惠券回收站", icon: "demopage", noCache: true }
      },
      {
        path: "recyclePayManagement", // 支付管理回收站
        component: () => import("@/views/recycle/recyclePayManagement"),
        name: "recyclePayManagement",
        meta: { title: "支付管理回收站", icon: "demopage", noCache: true }
      },
      {
        path: "recyclePersonnelManagement", // 员工回收站
        component: () => import("@/views/recycle/recyclePersonnelManagement"),
        name: "recyclePersonnelManagement",
        meta: { title: "员工回收站", icon: "demopage", noCache: true }
      },
      {
        path: "recycleRoleManagement", // 角色回收站
        component: () => import("@/views/recycle/recycleRoleManagement"),
        name: "recycleRoleManagement",
        meta: { title: "角色回收站", icon: "demopage", noCache: true }
      }
    ]
  },
  {
    path: "/operationLog", // 操作日志
    component: Layout,
    redirect: "/operationLog/operationLog",
    alwaysShow: true,
    meta: {
      title: "operationLog",
      icon: "excel",
      roles: ["user"],
      groupMenu: "日志"
    },

    children: [
      {
        path: "operationLog", // 基础设置
        component: () => import("@/views/operationLog/operationLog"),
        name: "operationLog",
        meta: {
          title: "操作日志",
          groupMenuTitle: "操作日志",
          groupTitle: "日志",
          icon: "demopage",
          noCache: true
        }
      },
      // {
      //   path: "systemlog", // 基础设置
      //   component: () => import("@/views/operationLog/systemlog"),
      //   name: "systemlog",
      //   meta: { title: "系统日志", icon: "demopage", noCache: true }
      // },
      // {
      //   path: "cachList", // 缓存信息
      //   component: () => import("@/views/operationLog/cachList"),
      //   name: "cachList",
      //   meta: {
      //     title: "缓存信息",
      //     groupTitle: "缓存",
      //     icon: "demopage",
      //     noCache: true
      //   }
      // },
      {
        path: "cacheList", // 清除缓存
        component: () => import("@/views/operationLog/cacheList"),
        name: "cacheList",
        meta: { title: "清除缓存", icon: "demopage", noCache: true }
      },

      // {
      //   path: 'cachList', // 缓存信息
      //   component: () => import('@/views/operationLog/cachList'),
      //   name: 'cachList',
      //   meta: { title: '缓存信息','groupMenuTitle': '缓存信息', groupTitle: '缓存', icon: 'demopage', noCache: true }
      // },
      {
        path: "moni", // 基础设置
        component: () => import("@/views/operationLog/moni"),
        name: "moni",
        hidden: true,
        meta: {
          title: "日志",
          groupMenuTitle: "日志",
          groupTitle: "日志",
          icon: "demopage",
          noCache: true
        }
      }
    ]
  },
  {
    path: "/basicdata", // 数据
    component: Layout,
    // redirect: "/basicdata/basicdatas",
    redirect:Cookies.get("agent_id")?`${"/basicdata/downloadCenter"}`:`${"/basicdata/basicdatas"}`,

    alwaysShow:true,
    meta: {
      title: "数据",
      icon: "shuju",
      roles: ["user"],
      groupMenu: "数据"
    },
    children: [
      {
        path: "basicdatas", // 基础设置
        component: () => import("@/views/basicdata/basicdatas"),
        name: "basicdatas",
        meta: {
          title: "数据统计",
          groupMenuTitle: "数据统计",
          groupTitle: "数据统计",
          icon: "demopage",
          noCache: true
        }
      },
      {
        path: "kanbandata", // 数据看板
        component: () => import("@/views/basicdata/kanbandata"),
        name: "kanbandata",
        meta: {
          title: "数据看板",
          // groupMenuTitle: "数据看板",
          // groupTitle: "数据统计",
          icon: "demopage",
          noCache: true
        }
      },
      {
        path: "appletsdata", // 基础设置
        component: () => import("@/views/basicdata/appletsdata"),
        name: "appletsdata",
        meta: {
          title: "小程序数据",
          // groupMenuTitle: "数据看板",
          // groupTitle: "数据统计",
          icon: "demopage",
          noCache: true
        }
      },
      {
        path: "distribution", // 基础设置
        component: () => import("@/views/basicdata/distribution"),
        name: "distribution",
        meta: {
          title: "分销统计",
          // groupMenuTitle: "数据看板",
          // groupTitle: "数据统计",
          icon: "demopage",
          noCache: true
        }
      },
      {
        path: "profitstatistics", // 利润统计
        component: () => import("@/views/basicdata/profitstatistics"),
        name: "profitstatistics",
        meta: {
          title: "利润统计",
          // groupMenuTitle: "数据看板",
          // groupTitle: "数据统计",
          icon: "demopage",
          noCache: true
        }
      },
      {
        path: "downloadCenter", // 基础设置
        component: () => import("@/views/basicdata/downloadCenter"),
        name: "downloadCenter",
        meta: {
          title: "下载中心",
          // groupMenuTitle: "数据看板",
          // groupTitle: "数据统计",
          icon: "demopage",
          noCache: true
        }
      },
      // {
      //   path: 'downloadCenter', // 下载中心
      //   component: () => import('@/views/setting/downloadCenter'),
      //   name: 'downloadCenter',
      //   meta: { title: '下载中心', icon: 'demopage', noCache: true }
      // },
    ]
  },
  {
    path: "/setting", // 设置
    component: Layout,
    redirect: "/setting/basisSettings",
    meta: {
      title: "setting",
      icon: "setting",
      roles: ["user"],
      groupMenu: "设置中心"
      // toRedirect: { '/setting/attachment/attachment': '/setting/attachment/attachmentSettings' } // level again redirect
    },
    children: [
      {
        path: "basisSettings", // 基础设置
        component: () => import("@/views/setting/basisSettings"),
        name: "basisSettings",
        meta: {
          title: "基础设置",
          groupMenuTitle: "设置中心",
          groupTitle: "系统设置",
          icon: "demopage",
          noCache: true
        }
      },
      {
        path: "otherSettings", // 其他设置
        component: () => import("@/views/setting/otherSettings"),
        name: "otherSettings",
        meta: { title: "其他设置", icon: "demopage", noCache: true }
      },

      {
        // 上传设置（****揭露zzy丑陋的嘴脸：因为zzy不想手动上传到服务器，所以写了这个上传设置，由pc端上传****）
        path: "uploadSettings",
        component: () => import("@/views/setting/uploadSettings"),
        name: "uploadSettings",
        hidden: true,
        meta: { title: "上传设置" }
      },
      // {
      //   path: 'returnAddress', // 退货地址
      //   component: () => import('@/views/setting/returnAddress'),
      //   name: 'returnAddress',
      //   meta: { title: '退货地址' }
      // },
      {
        path: "returnAddressAdd", // 退货地址
        component: () => import("@/views/setting/returnAddressAdd"),
        hidden: true,
        name: "returnAddressAdd",
        meta: {
          title: "退货地址添加",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/setting/payManagement", open: ["/setting"] }
        }
      },
      {
        path: "storageSettings", // 存储设置
        component: () => import("@/views/setting/storageSettings"),
        name: "storageSettings",
        meta: { title: "存储设置" }
      },
      {
        path: "paySettings", // 支付设置
        component: () => import("@/views/setting/paySettings"),
        name: "paySettings",
        meta: {
          title: "支付设置",
          groupTitle: "支付设置",
          icon: "demopage",
          noCache: true
        }
      },

      {
        path: "payManagement", // 支付管理
        component: () => import("@/views/setting/payManagement"),
        name: "payManagement",
        meta: { title: "支付管理" }
      },
      {
        path: "payManagementAdd", // 支付方式添加
        component: () => import("@/views/setting/payManagementAdd"),
        name: "payManagementAdd",
        hidden: true,
        meta: {
          title: "支付方式添加",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/setting/payManagement", open: ["/setting"] }
        }
      },
      {
        path: 'pointBalance', // 积分余额
        component: () => import('@/views/setting/pointBalance'),
        name: 'pointBalance',
        meta: { title: '积分余额', icon: 'demopage', noCache: true }
      },
      {
        path: 'withdrawalofBalance', // 积分余额
        component: () => import('@/views/setting/withdrawalofBalance'),
        name: 'withdrawalofBalance',
        meta: { title: '余额提现', icon: 'demopage', noCache: true }
      },
      // {
      //   path: 'downloadCenter', // 下载中心
      //   component: () => import('@/views/setting/downloadCenter'),
      //   name: 'downloadCenter',
      //   meta: { title: '下载中心', icon: 'demopage', noCache: true }
      // },
      {
        path: 'renwuing', // 计划任务
        component: () => import('@/views/setting/renwuing'),
        name: 'renwuing',
        hidden: true,
        meta: { title: '计划任务', icon: 'demopage', noCache: true }
      },
    ]
  },
  

    
  {
    path: "/livetelecast", // 直播
    component: Layout,
    redirect: "/livetelecast/livetelecast",
    alwaysShow: true,
    hidden: true,
    meta: {
      title: "livetelecast",
      icon: "zhibo",
      roles: ["user"],
      groupMenu: "直播"
    },
    children: [
      {
        path: "livetelecast", // 基础设置
        component: () => import("@/views/livetelecast/livelist"),
        name: "livetelecast",
        meta: {
          title: "直播列表",
          groupMenuTitle: "直播列表",
          groupTitle: "直播",
          icon: "demopage",
          noCache: true
        }
      },
      {
        path: "livetelecastSet", // 基础设置
        component: () => import("@/views/livetelecast/livelistSet"),
        name: "livetelecastSet",
        meta: { title: "直播设置", icon: "demopage", noCache: true }
      },
      {
        path: "addlivestudio", // 添加直播间
        component: () => import("@/views/livetelecast/addlivestudio"),
        name: "AddLiveStudio",
        hidden: true,
        meta: {
          title: "添加直播间",
          icon: "demopage",
          noCache: true,
          toRoote: {
            path: "/livetelecast/livetelecast",
            open: ["/livetelecast"]
          }
        }
      },
      {
        path: "livegoods", // 直播商品
        component: () => import("@/views/livetelecast/livegoods"),
        name: "LiveGoods",
        meta: { title: "直播商品", icon: "demopage", noCache: true }
      },
      {
        path: "addlivegoods", // 添加直播商品
        component: () => import("@/views/livetelecast/addlivegoods"),
        name: "AddLiveGoods",
        hidden: true,
        meta: {
          title: "添加直播商品",
          icon: "demopage",
          noCache: true,
          toRoote: {
            path: "/livetelecast/addlivegoods",
            open: ["/livetelecast"]
          }
        }
      },
      {
        path: "liveapplication", // 直播申请
        component: () => import("@/views/livetelecast/liveapplication"),
        name: "LiveApplication",
        meta: { title: "直播申请", icon: "demopage", noCache: true }
      }
    ]
  },
  {
    path: "/applicationNew", // 应用
    component: Custom,
    redirect: "/applicationNew/newapplication",
    alwaysShow: true,
    meta: {
      title: "应用",
      icon: "application",
      groupMenu: "应用中心",
      roles: ["newapplication"]
    },
    children: [
      {
        path: "newapplication",
        component: () => import("@/views/applicationNew/newapplication"),
        name: "newapplication",
        // meta: { title: '应用', icon: 'demopage', noCache: true }
        meta: {
          title: "应用",
          groupTitle: "应用中心",
          icon: "demopage",
          noCache: true
        }
      }
      // meta: { title: '商家列表', 'groupMenuTitle': '商家中心', groupTitle: '商家管理', icon: 'demopage', noCache: true }
    ]
  },
  {
    path: "/404",
    component: () => import("@/views/errorPage/404"),
    hidden: true
  },
  { path: "*", redirect: "/404", hidden: true }
];
  //代理端才会出现财务  finance  根据cooking里的ageng_id来判断是否显示该路由
export const asyndailiMap = [
  {
    path: "/finance", // 财务
    component: Layout,
    redirect: "/finance/finarefunddetails",
    alwaysShow:true,
    meta: {
      title: "财务",
      icon: "caiwu",
      // roles: ["user"],
      // groupMenu: "财务",
      // resetDisplay:['finarefunddetails']
    },
    children: [
      {
        path: "finarefunddetails", // 退款明细
        component: () => import("@/views/finance/finarefunddetails"),
        name: "finarefunddetails",
        meta: {
          title: "退款明细",
          groupMenuTitle: "财务",
          // groupTitle: "代理",
          icon: "demopage",
          noCache: true
        }
      },
      {
        path: "applywithdrawal", // 代理列表
        component: () => import("@/views/finance/applywithdrawal"),
        name: "applywithdrawal",
        meta: {
          title: "申请提现",
          // groupMenuTitle: "代理列表",
          // groupTitle: "代理",
          icon: "demopage",
          noCache: true
        }
      },
      {
        path: "myaccount", // 我的账户
        component: () => import("@/views/finance/myaccount"),
        name: "myaccount",
        meta: {
          title: "我的账户",
          // groupMenuTitle: "代理列表",
          // groupTitle: "代理",
          icon: "demopage",
          noCache: true
        }
      },
      {
        path: "daimerchantaccount", // 商家账户
        component: () => import("@/views/finance/daimerchantaccount"),
        name: "daimerchantaccount",
        meta: {
          title: "商家账户",
          // groupMenuTitle: "代理列表",
          // groupTitle: "代理",
          icon: "demopage",
          noCache: true
        }
      },
      {
        path: "withdrawalrecord", // 提现记录
        component: () => import("@/views/finance/withdrawalrecord"),
        name: "withdrawalrecord",
        meta: {
          title: "提现记录",
          // groupMenuTitle: "代理列表",
          // groupTitle: "代理",
          icon: "demopage",
          noCache: true
        }
      },
      
    ]
  },
]
export const asyncAdminRouterMap = [
  {
    path: "/user", // 用户
    component: Layout,
    redirect: "/user/managementAdminUser",
    meta: {
      title: "用户",
      icon: "user",
      subtitle: "用户"
    },
    children: [
      {
        path: "managementAdminUser", // 用户管理
        component: () => import("@/views/user/managementAdminUser"),
        name: "managementAdminUser",
        meta: {
          title: "用户",
          groupMenuTitle: "用户",
          groupTitle: "用户",
          icon: "demopage",
          noCache: true,
          noDropdown: true
        }
      },
      {
        path: "managementAdminUserAdd", // 用户管理/用户添加
        component: () => import("@/views/user/managementAdminUserAdd"),
        name: "managementAdminUserAdd",
        hidden: true,
        meta: {
          title: "用户添加",
          icon: "demopage",
          noCache: true,
          noDropdown: true,
          toRoote: { path: "/user/managementAdminUser", open: ["/user"] }
        }
      },

      {
        path: "managementAdminUserEdit", // 用户管理/用户编辑
        component: () => import("@/views/user/managementAdminUserEdit"),
        name: "managementAdminUserEdit",
        hidden: true,
        meta: {
          title: "用户编辑",
          icon: "demopage",
          noCache: true,
          noDropdown: true,
          toRoote: { path: "/user/managementAdminUser", open: ["/user"] }
        }
      },
      {
        path: "showBindWechatUser", // 查看绑定微信账号
        component: () => import("@/views/user/showBindWechatUser"),
        name: "showBindWechatUser",
        hidden: true,
        meta: {
          title: "绑定微信账号",
          icon: "demopage",
          noCache: true,
          noDropdown: true
        }
      }
      // {
      //   path: 'userPlatform', // 回收站
      //   component: () => import('@/views/user/userPlatform'),
      //   name: 'userPlatform',
      //   meta: { title: '回收站', icon: 'demopage', noCache: true }
      // },
      // {
      //   path: 'userSettings', // 注册设置
      //   component: () => import('@/views/user/userSettings'),
      //   name: 'userSettings',
      //   meta: { title: '注册设置', groupTitle: '设置', icon: 'demopage', noCache: true }
      // }
    ]
  },
  {
    path: "/platform", // 平台
    component: Layout,
    redirect: "/platform/managementPlatform",
    meta: {
      title: "平台",
      icon: "platform",
      roles: ["admin"]
    },
    children: [
      {
        path: "managementPlatform", // 管理平台
        component: () => import("@/views/platform/managementPlatform"),
        name: "managementPlatform",
        meta: {
          title: "平台",
          groupMenuTitle: "平台",
          groupTitle: "平台",
          icon: "platform",
          noCache: true,
          noDropdown: true
        }
      },
      {
        path: "managementPlatformAdd", // 管理平台/添加
        component: () => import("@/views/platform/managementPlatformAdd"),
        name: "managementPlatformAdd",
        meta: {
          title: "管理平台",
          icon: "platform",
          noCache: true,
          noDropdown: true,
          toRoote: { path: "/platform/managementPlatform", open: ["/platform"] }
        },
        hidden: true
      }
    ]
  },
  {
    path: "/setting", // 设置
    component: Layout,
    redirect: "/setting/siteSettings",
    meta: {
      title: "设置",
      icon: "setting",
      roles: ["admin"]
      // toRedirect: { '/setting/attachment/attachment': '/setting/attachment/attachmentSettings' } // level again redirect
    },
    children: [
      {
        path: "siteSettings", // 站点设置
        component: () => import("@/views/setting/siteSettings"),
        name: "siteSettings",
        meta: {
          title: "站点设置",
          groupMenuTitle: "设置中心",
          groupTitle: "系统设置",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/setting/siteSettings", open: ["/setting"] }
        }
      },
      {
        path: "falseUrl", // 域名设置
        component: () => import("@/views/setting/falseUrlLists"),
        name: "falseUrl",
        meta: { title: "域名设置", icon: "demopage", noCache: true }
      },
      {
        path: "falseUrlAdd", // 社群
        component: () => import("@/views/setting/falseUrlAdd"),
        name: "falseUrlAdd",
        hidden: true,
        meta: {
          title: "添加域名",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/setting/falseUrlLists", open: ["/setting"] }
        }
      },
      // {
      //   path: "falseUrlAdd", // 域名设置
      //   component: () => import("@/views/setting/falseUrlAdd"),
      //   name: "falseUrlAdd",
      //   hidden:true,
      //   meta: { title: "添加域名", icon: "demopage", noCache: true }
      // },
      {
        path: "adminStorageSettings", // 存储设置
        component: () => import("@/views/setting/adminStorageSettings"),
        name: "adminStorageSettings",
        meta: {
          title: "存储设置",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/setting/adminStorageSettings", open: ["/setting"] }
        }
      },
      
      // {
      //   path: "planningtasks", // 计划任务
      //   component: () => import("@/views/setting/planningtasks"),
      //   name: "planningtasks",
      //   meta: { title: "计划任务", icon: "demopage", noCache: true }
      // }
      {
        path: "emptyCache", // 清空缓存
        component: () => import("@/views/setting/emptyCache"),
        name: "emptyCache",
        meta: {
          title: "清空缓存",
          groupTitle: "数据管理",
          icon: "demopage",
          noCache: true
        }
      },
      {
        path: "optimizationSettings", // 系统信息
        component: () => import("@/views/setting/optimizationSettings"),
        name: "optimizationSettings",
        // hidden: true,
        meta: {
          title: "性能优化",
          groupTitle: "系统信息",
          icon: "demopage",
          noCache: true
        }
      },
      {
        path: "wechatSetting", // 系统信息
        component: () => import("@/views/setting/wechatSetting"),
        name: "wechatSetting",
        meta: { title: "公众号设置", icon: "demopage", noCache: true }
      },
      {
        path: "planningtasks", // 计划任务
        component: () => import("@/views/setting/planningtasks"),
        name: "planningtasks",
        meta: {
          title: "计划任务",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/setting/planningtasks", open: ["/setting"] }
        }
      },
    ]
  },
  {
    path: "/cloudservice", // 云服务
    component: Layout,
    redirect: "/cloudservice/systemAuthorization",
    meta: {
      title: "系统",
      icon: "cloudservice",
      roles: ["admin"]
    },
    children: [
      {
        path: "systemAuthorization", // 系统授权
        component: () => import("@/views/cloudservice/systemAuthorization"),
        name: "systemAuthorization",
        meta: {
          title: "系统授权",
          groupMenuTitle: "云服务中心",
          groupTitle: "授权更新",
          icon: "demopage",
          noCache: true
        }
      },
      {
        path: "systemUpgrade", // 系统升级
        component: () => import("@/views/cloudservice/systemUpgrade"),
        name: "systemUpgrade",
        meta: { title: "系统升级", icon: "demopage", noCache: true }
      },
      // {
      //   path: 'systemRollback', // 系统回滚
      //   component: () => import('@/views/cloudservice/systemRollback'),
      //   name: 'systemRollback',
      //   meta: { title: '系统回滚', icon: 'demopage', noCache: true }
      // },
      {
        path: "updateLog", // 更新日志
        component: () => import("@/views/cloudservice/updateLog"),
        name: "updateLog",
        meta: { title: "更新日志", icon: "demopage", noCache: true }
      },
      {
        path: "migration", // 数据迁移
        component: () => import("@/views/cloudservice/migration"),
        name: "migration",
        meta: { title: "数据迁移", icon: "demopage", noCache: true }
      }
    ]
  }
  // {
  //   path: '/operationLog', // 操作日志
  //   component: Layout,
  //   redirect: '/operationLog/operationLog',
  //   alwaysShow: true,
  //   meta: {
  //     title: 'operationLog',
  //     icon: 'excel',
  //     roles: ['user'],
  //     groupMenu: '日志'
  //   },
  //   children: [
  //     {
  //       path: 'operationLog', // 基础设置
  //       component: () => import('@/views/operationLog/operationLog'),
  //       name: 'operationLog',
  //       meta: { title: '操作日志', 'groupMenuTitle': '操作日志', groupTitle: '日志', icon: 'demopage', noCache: true }
  //     },
  //     {
  //       path: 'moni', // 基础设置
  //       component: () => import('@/views/operationLog/moni'),
  //       name: 'moni',
  //       hidden: true,
  //       meta: { title: '日志', 'groupMenuTitle': '日志', groupTitle: '日志', icon: 'demopage', noCache: true }
  //     }
  //   ]
  // }
];

// 权限管理路由，新增，根据store里面的app.js的is_jurisdiction判断是否要添加此路由
export const asyncUserEditionMap = [
  {
    path: "/permission", // 权限
    component: Layout,
    redirect: "/permission/employeeManagement",
    meta: {
      title: "权限",
      icon: "lock",
      roles: ["user"]
    },
    children: [
      {
        path: "employeeManagement", // 员工管理
        component: () => import("@/views/permission/employeeManagement"),
        name: "employeeManagement",
        meta: {
          title: "员工管理",
          groupMenuTitle: "权限中心",
          groupTitle: "员工",
          icon: "demopage",
          noCache: true
        }
      },
      {
        path: "employeeManagementAdd", // 员工添加
        component: () => import("@/views/permission/employeeManagementAdd"),
        name: "employeeManagementAdd",
        meta: {
          title: "员工添加",
          icon: "demopage",
          noCache: true,
          toRoote: {
            path: "/permission/employeeManagement",
            open: ["/permission"]
          }
        },
        hidden: true
      },
      {
        path: "employeeManagementAdd", // 员工编辑
        component: () => import("@/views/permission/employeeManagementAdd"),
        name: "employeeManagementAdd",
        meta: {
          title: "员工编辑",
          icon: "demopage",
          noCache: true,
          toRoote: {
            path: "/permission/employeeManagement",
            open: ["/permission"]
          }
        },
        hidden: true
      },
      {
        path: "roleManagement", // 角色管理
        component: () => import("@/views/permission/roleManagement"),
        name: "roleManagement",
        meta: { title: "角色管理", icon: "demopage", noCache: true }
      },
      {
        path: "roleManagementPermission", // 角色管理权限
        component: () => import("@/views/permission/roleManagementPermission"),
        name: "roleManagementPermission",
        meta: { title: "角色权限", icon: "demopage", noCache: true },
        hidden: true
      },
      {
        path: "roleManagementAdd", // 角色管理添加
        component: () => import("@/views/permission/roleManagementAdd"),
        name: "roleManagementAdd",
        meta: {
          title: "添加角色",
          icon: "demopage",
          noCache: true,
          toRoote: {
            path: "/permission/roleManagementPermission",
            open: ["/permission"]
          }
        },
        hidden: true
      }
      // {
      //   path: 'operationLog', // 操作日志
      //   component: () => import('@/views/permission/operationLog'),
      //   name: 'operationLog',
      //   meta: { title: '操作日志', groupTitle: '日志', icon: 'demopage', noCache: true }
      // }
    ]
  }
];

// 渠道
export const asyncChannleMap = [
  {
    path: "/channel", // 渠道
    component: Layout,
    redirect: "/channel/channelDisplay",
    alwaysShow: true,
    meta: {
      title: "渠道",
      icon: "channel",
      groupMenu: "渠道中心",
      // roles: ['user'],
      resetDisplay: ["channelDisplay"]
    },
    children: [
      {
        path: "channelDisplay", // 渠道列表
        component: () => import("@/views/channel/channelDisplay"),
        name: "channelDisplay",
        meta: {
          title: "渠道列表",
          groupMenuTitle: "渠道中心",
          groupTitle: "渠道列表",
          icon: "demopage",
          noCache: true
        }
      },
      {
        path: "weChatPublicChannel", // 渠道管理
        component: () => import("@/views/channel/weChatPublicChannel"),
        name: "weChatPublicChannel",
        hidden: true,
        meta: {
          title: "公众号设置",
          groupMenuTitle: "渠道中心",
          groupTitle: "公众号",
          icon: "demopage",
          noCache: true,
          display: {
            roote: "/channel",
            children: [
              "weChatPublicChannel",
              "weChatMenuChannelList",
              "weChatReplyChannelList",
              "weChatPublicImageSource",
              "weChatPublicVideoSource",
              "weChatPublicAudioSource",
              "weChatPublicUeditorSource"
            ]
          }
        }
      },
      {
        path: "weChatPublicChannelAdd", // 公众号设置/编辑
        component: () => import("@/views/channel/weChatPublicChannelAdd"),
        name: "weChatPublicChannelAdd",
        hidden: true,
        meta: {
          title: "公众号设置",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/channel/weChatPublicChannel", open: ["/channel"] }
        }
      },
      {
        path: "weChatPublicMenu", // 公众号自定义菜单
        component: () => import("@/views/channel/weChatPublicMenu"),
        name: "weChatPublicMenu",
        hidden: true,
        meta: {
          title: "自定义菜单",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/channel/weChatPublicMenu", open: ["/channel"] }
        }
      },
      {
        path: "weChatMenuChannelList", // 公众号自定义底部菜单管理/列表
        component: () => import("@/views/channel/weChatMenuChannelList"),
        name: "weChatMenuChannelList",
        hidden: true,
        meta: {
          title: "自定义菜单",
          icon: "demopage",
          noCache: true,
          toRoote: {
            path: "/channel/weChatMenuChannelList",
            open: ["/channel"]
          },
          display: {
            roote: "/channel",
            children: [
              "weChatPublicChannel",
              "weChatMenuChannelList",
              "weChatReplyChannelList",
              "weChatPublicImageSource",
              "weChatPublicVideoSource",
              "weChatPublicAudioSource",
              "weChatPublicUeditorSource"
            ]
          }
        }
      },
      {
        path: "weChatMenuChannelAdd", // 公众号自定义底部菜单管理/添加
        component: () => import("@/views/channel/weChatMenuChannelAdd"),
        name: "weChatMenuChannelAdd",
        hidden: true,
        meta: {
          title: "自定义菜单",
          icon: "demopage",
          noCache: true,
          toRoote: {
            path: "/channel/weChatMenuChannelList",
            open: ["/channel"]
          },
          display: {
            roote: "/channel",
            children: [
              "weChatPublicChannel",
              "weChatMenuChannelList",
              "weChatReplyChannelList",
              "weChatPublicImageSource",
              "weChatPublicVideoSource",
              "weChatPublicAudioSource",
              "weChatPublicUeditorSource"
            ]
          }
        }
      },
      {
        path: "weChatReplyChannelList", // 公众号自动回复管理/列表
        component: () => import("@/views/channel/weChatReplyChannelList"),
        name: "weChatReplyChannelList",
        hidden: true,
        meta: {
          title: "自动回复",
          icon: "demopage",
          noCache: true,
          toRoote: {
            path: "/channel/weChatReplyChannelList",
            open: ["/channel"]
          },
          display: {
            roote: "/channel",
            children: [
              "weChatPublicChannel",
              "weChatMenuChannelList",
              "weChatReplyChannelList",
              "weChatPublicImageSource",
              "weChatPublicVideoSource",
              "weChatPublicAudioSource",
              "weChatPublicUeditorSource"
            ]
          }
        }
      },
      {
        path: "weChatReplyChannelListAdd", // 公众号自动回复管理/列表
        component: () => import("@/views/channel/weChatReplyChannelListAdd"),
        name: "weChatReplyChannelListAdd",
        hidden: true,
        meta: {
          title: "自动回复",
          icon: "demopage",
          noCache: true,
          toRoote: {
            path: "/channel/weChatReplyChannelList",
            open: ["/channel"]
          },
          display: {
            roote: "/channel",
            children: [
              "weChatPublicChannel",
              "weChatMenuChannelList",
              "weChatReplyChannelList",
              "weChatPublicImageSource",
              "weChatPublicVideoSource",
              "weChatPublicAudioSource",
              "weChatPublicUeditorSource"
            ]
          }
        }
      },
      {
        path: "weChatPublicImageSource", // 渠道管理/素材管理/图片
        component: () => import("@/views/channel/weChatPublicImageSource"),
        name: "weChatPublicImageSource",
        hidden: true,
        meta: {
          title: "图片素材",
          groupTitle: "素材管理",
          icon: "demopage",
          noCache: true,
          toRoote: {
            path: "/channel/weChatPublicImageSource",
            open: ["/channel"]
          },
          display: {
            roote: "/channel",
            children: [
              "weChatPublicChannel",
              "weChatMenuChannelList",
              "weChatReplyChannelList",
              "weChatPublicImageSource",
              "weChatPublicVideoSource",
              "weChatPublicAudioSource",
              "weChatPublicUeditorSource"
            ]
          }
        }
      },
      {
        path: "weChatPublicVideoSource", // 渠道管理/素材管理/视频
        component: () => import("@/views/channel/weChatPublicVideoSource"),
        name: "weChatPublicVideoSource",
        hidden: true,
        meta: {
          title: "视频素材",
          icon: "demopage",
          noCache: true,
          toRoote: {
            path: "/channel/weChatPublicVideoSource",
            open: ["/channel"]
          },
          display: {
            roote: "/channel",
            children: [
              "weChatPublicChannel",
              "weChatMenuChannelList",
              "weChatReplyChannelList",
              "weChatPublicImageSource",
              "weChatPublicVideoSource",
              "weChatPublicAudioSource",
              "weChatPublicUeditorSource"
            ]
          }
        }
      },
      {
        path: "weChatPublicAudioSource", // 渠道管理/素材管理/音频
        component: () => import("@/views/channel/weChatPublicAudioSource"),
        name: "weChatPublicAudioSource",
        hidden: true,
        meta: {
          title: "音频素材",
          icon: "demopage",
          noCache: true,
          toRoote: {
            path: "/channel/weChatPublicAudioSource",
            open: ["/channel"]
          },
          display: {
            roote: "/channel",
            children: [
              "weChatPublicChannel",
              "weChatMenuChannelList",
              "weChatReplyChannelList",
              "weChatPublicImageSource",
              "weChatPublicVideoSource",
              "weChatPublicAudioSource",
              "weChatPublicUeditorSource"
            ]
          }
        }
      },
      {
        path: "weChatPublicUeditorSource", // 渠道管理/素材管理/图文
        component: () => import("@/views/channel/weChatPublicUeditorSource"),
        name: "weChatPublicUeditorSource",
        hidden: true,
        meta: {
          title: "图文素材",
          icon: "demopage",
          noCache: true,
          toRoote: {
            path: "/channel/weChatPublicUeditorSource",
            open: ["/channel"]
          },
          display: {
            roote: "/channel",
            children: [
              "weChatPublicChannel",
              "weChatMenuChannelList",
              "weChatReplyChannelList",
              "weChatPublicImageSource",
              "weChatPublicVideoSource",
              "weChatPublicAudioSource",
              "weChatPublicUeditorSource"
            ]
          }
        }
      },
      {
        path: "weChatPublicUeditorSourceAdd", // 渠道管理/素材管理/图文
        component: () => import("@/views/channel/weChatPublicUeditorSourceAdd"),
        name: "weChatPublicUeditorSourceAdd",
        hidden: true,
        meta: {
          title: "图文素材",
          icon: "demopage",
          noCache: true,
          toRoote: {
            path: "/channel/weChatPublicUeditorSource",
            open: ["/channel"]
          },
          display: {
            roote: "/channel",
            children: [
              "weChatPublicChannel",
              "weChatMenuChannelList",
              "weChatReplyChannelList",
              "weChatPublicImageSource",
              "weChatPublicVideoSource",
              "weChatPublicAudioSource",
              "weChatPublicUeditorSource"
            ]
          }
        }
      },
      {
        path: "weChatAppletsChannel", // 小程序设置
        component: () => import("@/views/channel/weChatAppletsChannel"),
        name: "weChatAppletsChannel",
        hidden: true,
        meta: {
          title: "小程序设置",
          groupMenuTitle: "渠道中心",
          groupTitle: "微信小程序",
          icon: "demopage",
          noCache: true,
          display: {
            roote: "/channel",
            children: [
              "weChatAppletsChannel",
              "weChatAppletsChannelRedirect",
              "weChatAppletsChannelPublish",
              "weChatAppletsChannelQrcode",
              "weChatAppletsCodeDownload"
            ]
          }
        }
      },
      {
        path: "weChatAppletsChannelRedirect", // 跳转小程序
        component: () => import("@/views/channel/weChatAppletsChannelRedirect"),
        name: "weChatAppletsChannelRedirect",
        hidden: true,
        meta: {
          title: "跳转小程序",
          icon: "demopage",
          noCache: true,
          toRoote: {
            path: "/channel/weChatAppletsChannelRedirect",
            open: ["/channel"]
          },
          display: {
            roote: "/channel",
            children: [
              "weChatAppletsChannel",
              "weChatAppletsChannelRedirect",
              "weChatAppletsChannelPublish",
              "weChatAppletsChannelQrcode",
              "weChatAppletsCodeDownload"
            ]
          }
        }
      },
      {
        path: "weChatAppletsChannelPublish", // 小程序发布
        component: () => import("@/views/channel/weChatAppletsChannelPublish"),
        name: "weChatAppletsChannelPublish",
        hidden: true,
        meta: {
          title: "小程序发布",
          icon: "demopage",
          noCache: true,
          toRoote: {
            path: "/channel/weChatAppletsChannelPublish",
            open: ["/channel"]
          },
          display: {
            roote: "/channel",
            children: [
              "weChatAppletsChannel",
              "weChatAppletsChannelRedirect",
              "weChatAppletsChannelPublish",
              "weChatAppletsChannelQrcode",
              "weChatAppletsCodeDownload"
            ]
          }
        }
      },
      {
        path: "weChatAppletsCodeDownload", // 小程序代码打包下载
        component: () => import("@/views/channel/weChatAppletsCodeDownload"),
        name: "weChatAppletsCodeDownload",
        hidden: true,
        meta: {
          title: "打包下载",
          icon: "demopage",
          noCache: true,
          toRoote: {
            path: "/channel/weChatAppletsCodeDownload",
            open: ["/channel"]
          },
          display: {
            roote: "/channel",
            children: [
              "weChatAppletsChannel",
              "weChatAppletsChannelRedirect",
              "weChatAppletsChannelPublish",
              "weChatAppletsChannelQrcode",
              "weChatAppletsCodeDownload"
            ]
          }
        }
      },
      // {
      //   path: 'weChatAppletsChannelQrcode', // 小程序二维码设置
      //   component: () => import('@/views/channel/weChatAppletsChannelQrcode'),
      //   name: 'weChatAppletsChannelQrcode',
      //   hidden: true,
      //   meta: { title: '二维码设置', noCache: true,  open: ['/channel'] }}
      // },
      {
        path: "weChatAppletsChannelAdd", // 小程序设置/编辑
        component: () => import("@/views/channel/weChatAppletsChannelAdd"),
        name: "weChatAppletsChannelAdd",
        hidden: true,
        meta: {
          title: "小程序设置",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/channel/weChatAppletsChannel", open: ["/channel"] }
        }
      },
      {
        path: "alipayAppletsChannel", // 支付宝小程序
        component: () => import("@/views/channel/alipayAppletsChannel"),
        name: "alipayAppletsChannel",
        hidden: true,
        meta: {
          title: "支付宝设置",
          groupMenuTitle: "渠道中心",
          groupTitle: "支付宝小程序",
          icon: "demopage",
          noCache: true,
          display: {
            roote: "/channel",
            children: ["alipayAppletsChannel"]
          }
        }
      },
      {
        path: "alipayAppletsChannelAdd", // 支付宝小程序设置/编辑
        component: () => import("@/views/channel/alipayAppletsChannelAdd"),
        name: "alipayAppletsChannelAdd",
        hidden: true,
        meta: {
          title: "支付宝设置",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/channel/alipayAppletsChannel", open: ["/channel"] }
        }
      },
      {
        path: "baiduAppletsChannel", // 百度小程序
        component: () => import("@/views/channel/baiduAppletsChannel"),
        name: "baiduAppletsChannel",
        hidden: true,
        meta: {
          title: "百度设置",
          groupMenuTitle: "渠道中心",
          groupTitle: "百度小程序",
          icon: "demopage",
          noCache: true,
          display: {
            roote: "/channel",
            children: ["baiduAppletsChannel"]
          }
        }
      },
      {
        path: "baiduAppletsChannelAdd", // 百度设置/编辑
        component: () => import("@/views/channel/baiduAppletsChannelAdd"),
        name: "baiduAppletsChannelAdd",
        hidden: true,
        meta: {
          title: "百度设置",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/channel/baiduAppletsChannel", open: ["/channel"] }
        }
      },
      {
        path: "toutiaoAppletsChannel", // 头条设置
        component: () => import("@/views/channel/toutiaoAppletsChannel"),
        name: "toutiaoAppletsChannel",
        hidden: true,
        meta: {
          title: "头条设置",
          groupMenuTitle: "渠道中心",
          groupTitle: "头条小程序",
          icon: "demopage",
          noCache: true,
          display: {
            roote: "/channel",
            children: ["toutiaoAppletsChannel"]
          }
        }
      },
      {
        path: "toutiaoAppletsChannelAdd", // 头条设置/编辑
        component: () => import("@/views/channel/toutiaoAppletsChannelAdd"),
        name: "toutiaoAppletsChannelAdd",
        hidden: true,
        meta: {
          title: "头条设置",
          icon: "demopage",
          noCache: true,
          toRoote: {
            path: "/channel/toutiaoAppletsChannel",
            open: ["/channel"]
          }
        }
      },
      {
        path: "h5Channel", // h5
        component: () => import("@/views/channel/h5Channel"),
        name: "h5Channel",
        hidden: true,
        meta: {
          title: "H5设置",
          groupMenuTitle: "渠道中心",
          groupTitle: "H5",
          icon: "demopage",
          noCache: true,
          display: {
            roote: "/channel",
            children: ["h5Channel"]
          }
        }
      },
      {
        path: "h5ChannelAdd", // 小程序设置/编辑
        component: () => import("@/views/channel/h5ChannelAdd"),
        name: "h5ChannelAdd",
        hidden: true,
        meta: {
          title: "H5设置",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/channel/h5Channel", open: ["/channel"] }
        }
      }
    ]
  }
];


/**
 * 新版应用
 *
 */
// 应用
// 参数介绍：
// app_is_model:true,//是否主模块
// app_model:'marketing',//分配模块
// app_param:{//边框线，背景色
// app_index:'coupon',//权限标识 可打开newapplication.vue中patSetting查看标识，如果没有就直接设置为true
//   style:'border-color: #ffdbcb;background: #fff9f7;'已废弃
// },
export const asyncPluginsMap = [
  {
    path: "/application", // 应用
    component: Custom,
    redirect: "/applicationNew/newapplication",
    alwaysShow: false,
    hidden: true,
    meta: {
      title: "应用",
      // icon: 'application',
      groupMenu: "应用中心"
      // resetDisplay: ['couponMarketing', 'messageTool', 'spikeMarketing', 'membershipCardClient', 'groupsMarketing', 'lottery', 'couponClient', 'cardPassword', 'cashback', 'custormPosterList', 'bargain', 'envelope', 'groupBuy', 'themeColor','custormPosterform']
    },
    children: [
      {
        path: "couponMarketing", // 优惠券
        component: () => import("@/views/application/couponMarketing"),
        name: "couponMarketing",
        // hidden: true,
        app_is_model: true, //是否主模块
        app_index: "coupon", //权限标识
        app_model: "marketing", //分配模块
        app_param: {
          app_path: require("@/assets/image/youhuijuan.png"),
          // style:'border-color: #d3efd0;background: #f7fcf7;',
          describe: "向客户发放优惠券，提升复购率" //描述
        },
        // redirect: '/application/couponMarketingRecords',
        meta: {
          title: "优惠券",
          groupMenuTitle: "应用中心",
          groupTitle: "营销玩法",
          icon: "demopage",
          noCache: true,
          toRoote: {
            path: "/application/newapplication",
            open: ["/application"]
          }
        }
      },
      {
        path: "couponMarketingRecords", // 优惠券/领取记录
        component: () => import("@/views/application/couponMarketingRecords"),
        name: "couponMarketingRecords",
        hidden: true,
        meta: {
          title: "领取记录",
          icon: "demopage",
          noCache: true,
          toRoote: {
            path: "/application/couponMarketing",
            open: ["/application"]
          }
        }
      },
      {
        path: "couponMarketingFullAdd", // 优惠券/添加满减券
        component: () => import("@/views/application/couponMarketingFullAdd"),
        name: "couponMarketingFullAdd",
        hidden: true,
        meta: {
          title: "满减券",
          icon: "demopage",
          noCache: true,
          toRoote: {
            path: "/application/couponMarketing",
            open: ["/application"]
          }
        }
      },
      {
        path: "couponMarketingDiscountAdd", // 优惠券/添加满减券
        component: () =>
          import("@/views/application/couponMarketingDiscountAdd"),
        name: "couponMarketingDiscountAdd",
        hidden: true,
        meta: {
          title: "折扣券",
          icon: "demopage",
          noCache: true,
          toRoote: {
            path: "/application/couponMarketing",
            open: ["/application"]
          }
        }
      },
      {
        path: "couponMarketingFreightAdd", // 优惠券/添加满减券
        component: () =>
          import("@/views/application/couponMarketingFreightAdd"),
        name: "couponMarketingFreightAdd",
        hidden: true,
        meta: {
          title: "运费券",
          icon: "demopage",
          noCache: true,
          toRoote: {
            path: "/application/couponMarketing",
            open: ["/application"]
          }
        }
      },
      {
        path: "couponMarketingRandomAdd", // 优惠券/添加满减券
        component: () => import("@/views/application/couponMarketingRandomAdd"),
        name: "couponMarketingRandomAdd",
        hidden: true,
        meta: {
          title: "随机券",
          icon: "demopage",
          noCache: true,
          toRoote: {
            path: "/application/couponMarketing",
            open: ["/application"]
          }
        }
      },

      {
        path: "spikeMarketing", // 秒杀抢购
        component: () => import("@/views/application/spikeMarketing"),
        name: "spikeMarketing",
        app_is_model: true, //是否主模块
        app_index: "spike", //权限标识
        app_model: "marketing", //分配模块
        app_param: {
          app_path: require("@/assets/image/miaosha.png"),
          // style:'border-color: #d3efd0;background: #f7fcf7;',
          describe: "快速抢购引导顾客更多更快消费" //描述
        },
        meta: { title: "秒杀", icon: "demopage", noCache: true }
      },

      {
        path: "spikeMarketingAdd", // 添加秒杀
        component: () => import("@/views/application/spikeMarketingAdd"),
        name: "spikeMarketingAdd",
        hidden: true,
        meta: {
          title: "秒杀",
          icon: "demopage",
          noCache: true,
          toRoote: {
            path: "/application/spikeMarketing",
            open: ["/application"]
          }
        }
      },
      {
        path: "merchandiseManagementSeckill", // 秒杀商品库
        component: () =>
          import("@/views/application/merchandiseManagementSeckill"),
        name: "merchandiseManagementSeckill",
        hidden: true,
        meta: {
          title: "秒杀商品库",
          icon: "demopage",
          noCache: true,
          toRoote: {
            path: "/application/merchandiseManagementSeckill",
            open: ["/application"]
          }
        }
      },

      {
        path: "lookUser", // 查看用户
        component: () => import("@/views/application/lookUser"),
        name: "lookUser",
        hidden: true,
        meta: {
          title: "查看用户",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/application/activityLike", open: ["/application"] }
        }
      },
      {
        path: 'addActivity', 
        component: () => import('@/views/application/addActivity'),
        name: 'addActivity',
        hidden:true,
        meta: { title: '添加活动', icon: 'demopage',noCache: true,  toRoote: { path: '/application/addActivity', open: ['/application'] }}
      },
     
      {
        path: 'addActivityBlessBag', // 添加活动
        component: () => import('@/views/application/addActivityBlessBag'),
        name: 'addActivityBlessBag',
        hidden:true,
        meta: { title: '添加活动', icon: 'demopage',noCache: true,  toRoote: { path: '/application/addActivity', open: ['/application'] }}
      },
      {
        path: "lookUserBag", // 查看用户--福袋
        component: () => import("@/views/application/lookUserBag"),
        name: "lookUserBag",
        hidden: true,
        meta: {
          title: "查看用户",
          icon: "demopage",
          noCache: true,
          toRoote: {
            path: "/application/addActivityBlessBag",
            open: ["/application"]
          }
        }
      },
      {
        path: 'treasureAdd', // 任务宝添加活动
        component: () => import('@/views/application/treasureAdd'),
        name: 'treasureAdd',
        hidden:true,
        meta: { title: '添加活动', icon: 'demopage',noCache: true,  toRoote: { path: '/application/treasure', open: ['/application'] }}
      },
      {
        path: 'treasureDetails', // 任务宝添加活动
        component: () => import('@/views/application/treasureDetails'),
        name: 'treasureDetails',
        hidden:true,
        meta: { title: '活动详情', icon: 'demopage',noCache: true,  toRoote: { path: '/application/treasure', open: ['/application'] }}
      },
      {
        path: 'treasureHelp', // 任务宝
        component: () => import('@/views/application/treasureHelp'),
        name: 'treasureHelp',
        hidden:true,
        meta: { title: '助力详情', icon: 'demopage',noCache: true,  toRoote: { path: '/application/treasure', open: ['/application'] }}
      },
      {
        path: 'groupsMarketing', // 拼团
        component: () => import('@/views/application/groupsMarketing'),
        name: 'groupsMarketing',
        app_is_model:true,//是否主模块
        app_index:'groups',//权限标识
        app_model:'marketing',//分配模块
        app_param:{
          app_path:require('@/assets/image/pintuan.png'),
          // style:'border-color: #d3efd0;background: #f7fcf7;',
          describe: "引导客户邀请朋友一起拼团购买" //描述
        },
        meta: { title: "拼团", icon: "demopage", noCache: true }
      },
      {
        path: "groupsMarketingAdd", // 添加拼团
        component: () => import("@/views/application/groupsMarketingAdd"),
        name: "groupsMarketingAdd",
        hidden: true,
        meta: {
          title: "拼团",
          icon: "demopage",
          noCache: true,
          toRoote: {
            path: "/application/groupsMarketing",
            open: ["/application"]
          }
        }
      },
      {
        path: "groupsInfoList", // 拼团数据
        component: () => import("@/views/application/groupsInfoList"),
        name: "groupsInfoList",
        hidden: true,
        meta: {
          title: "拼团数据",
          icon: "demopage",
          noCache: true,
          toRoote: {
            path: "/application/groupsMarketing",
            open: ["/application"]
          }
        }
      },
      {
        path: "lottery", // 抽奖
        component: () => import("@/views/application/lottery"),
        name: "lottery",
        app_is_model: true, //是否主模块
        app_index: "luck", //权限标识
        app_model: "marketing", //分配模块
        app_param: {
          app_path: require("@/assets/image/choujiang.png"),
          // style:'border-color: #d3efd0;background: #f7fcf7;',
          describe: "裂变加粉，多重能力" //描述
        },
        meta: { title: "抽奖", icon: "demopage", noCache: true }
      },
      {
        path: "lotteryAdd", // 添加抽奖
        component: () => import("@/views/application/lotteryAdd"),
        name: "lotteryAdd",
        hidden: true,
        meta: {
          title: "抽奖",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/application/lottery", open: ["/application"] }
        }
      },
      {
        path: "lotteryAddList", // 添加抽奖
        component: () => import("@/views/application/lotteryAddList"),
        name: "lotteryAddList",
        hidden: true,
        meta: {
          title: "抽奖订单列表",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/application/lottery", open: ["/application"] }
        }
      },
      {
        path: "lotteryRecord", // 抽奖记录
        component: () => import("@/views/application/lotteryRecord"),
        name: "lotteryRecord",
        hidden: true,
        meta: {
          title: "抽奖记录列表",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/application/lottery", open: ["/application"] }
        }
      },
      {
        path: "lotteryInfoList", // 抽奖用户
        component: () => import("@/views/application/lotteryInfoList"),
        name: "lotteryInfoList",
        hidden: true,
        meta: {
          title: "抽奖用户",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/application/lottery", open: ["/application"] }
        }
      },
      {
        path: "lucklistset", // 抽奖列表页设置
        component: () => import("@/views/application/luckListSet"),
        name: "lucklistset",
        hidden: true,
        meta: {
          title: "抽奖汇总页设置",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/application/lottery", open: ["/application"] }
        }
      },
      {
        path: "cashback", // 支付返现 支付营销
        component: () => import("@/views/application/cashback"),
        name: "cashback",
        app_is_model: true, //是否主模块
        app_index: "cashback", //权限标识
        app_model: "marketing", //分配模块
        app_param: {
          app_path: require("@/assets/image/zhifuyingxiao.png"),
          // style:'border-color: #d3efd0;background: #f7fcf7;',
          describe: "银行支付优惠" //描述
        },
        meta: { title: "银行满减", icon: "demopage", noCache: true }
      },
      {
        path: "cashbackAdd", // 返现立减
        component: () => import("@/views/application/cashbackAdd"),
        name: "cashbackAdd",
        hidden: true,
        meta: {
          title: "支付营销",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/application/cashback", open: ["/application"] }
        }
      },
      {
        path: "cashbackInfo", // 返现记录
        component: () => import("@/views/application/cashbackInfo"),
        name: "cashbackInfo",
        hidden: true,
        meta: {
          title: "返现记录",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/application/cashback", open: ["/application"] }
        }
      },
      {
        path: "custormPosterList", // 自定义海报
        component: () => import("@/views/application/custormPosterList"),
        name: "custormPosterList",
        app_is_model: true, //是否主模块
        app_index: "diyposter", //权限标识
        app_model: "marketing", //分配模块
        app_param: {
          app_path: require("@/assets/image/haibao.png"),
          // style:'border-color: #d3efd0;background: #f7fcf7;',
          describe: "自定义商品/分销/秒杀/拼团分享海报" //描述
        },
        meta: { title: "系统海报", icon: "demopage", noCache: true }
      },
      {
        path: "custormPosterListAdd", // 自定义海报/添加
        component: () => import("@/views/application/custormPosterListAdd"),
        name: "custormPosterListAdd",
        hidden: true,
        meta: {
          title: "自定义海报",
          icon: "demopage",
          noCache: true,
          toRoote: {
            path: "/application/custormPosterList",
            open: ["/application"]
          }
        }
      },
      {
        path: "custormPosterform", // 自定义表单
        component: () => import("@/views/application/custormPosterform"),
        name: "custormPosterform",
        app_is_model: true, //是否主模块
        app_index: "form", //权限标识
        app_model: "marketing", //分配模块
        app_param: {
          app_path: require("@/assets/image/biaodan.png"),
          // style:'border-color: #d3efd0;background: #f7fcf7;',
          describe: "快速创建商品/下单/弹框/分销表单" //描述
        },
        meta: { title: "系统表单", icon: "demopage", noCache: true }
      },
      {
        path: "custormPosterformAdd", // 自定义表单
        component: () => import("@/views/application/custormPosterformAdd"),
        name: "custormPosterformAdd",
        hidden: true,
        meta: {
          title: "表单页面",
          icon: "demopage",
          noCache: true,
          isCustom: true,
          toRoote: {
            path: "/application/custormPosterform",
            open: ["/application"]
          }
        }
      },
      {
        path: "lookcustormPosterform", // 查看表单
        component: () => import("@/views/application/lookcustormPosterform"),
        name: "lookcustormPosterform",
        hidden: true,
        meta: { title: "查看表单", icon: "demopage", noCache: true }
      },
      {
        path: "detailscustormPosterform", // 查看详情
        component: () => import("@/views/application/detailscustormPosterform"),
        name: "detailscustormPosterform",
        hidden: true,
        meta: { title: "查看详情", icon: "demopage", noCache: true }
      },
      {
        path: "bargain", // 砍价
        component: () => import("@/views/application/bargain"),
        name: "bargain",
        app_is_model: true, //是否主模块
        app_index: "bargain", //权限标识
        app_model: "marketing", //分配模块
        app_param: {
          app_path: require("@/assets/image/kanjia.png"),
          // style:'border-color: #d3efd0;background: #f7fcf7;',
          describe: "帮我砍一刀" //描述
        },
        meta: { title: "砍价", icon: "demopage", noCache: true }
      },
      {
        path: "bargainAdd", // 砍价添加
        component: () => import("@/views/application/bargainAdd"),
        name: "bargainAdd",
        hidden: true,
        meta: {
          title: "砍价",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/application/bargain", open: ["/application"] }
        }
      },
      {
        path: "envelope", // 红包
        component: () => import("@/views/application/envelope"),
        name: "envelope",
        app_is_model: true, //是否主模块
        app_index: "redenvelopes", //权限标识
        app_model: "marketing", //分配模块
        app_param: {
          app_path: require("@/assets/image/hongbao.png"),
          // style:'border-color: #d3efd0;background: #f7fcf7;',
          describe: "裂变模式、瓜分模式快速裂变吸粉" //描述
        },
        meta: { title: "裂变红包", icon: "demopage", noCache: true }
      },
      {
        path: "envelopeAdd", // 分享红包
        component: () => import("@/views/application/envelopeAdd"),
        name: "envelopeAdd",
        hidden: true,
        meta: {
          title: "红包活动",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/application/envelope", open: ["/application"] }
        }
      },
      {
        path: "groupBuy", // 社区团购
        component: () => import("@/views/community-purchase/groupBuy"),
        redirect: "/application/supplierManagement",
        // name:'supplierManagement',
        app_is_model: true, //是否主模块
        app_index: "cgp", //权限标识
        app_model: "marketing", //分配模块
        app_param: {
          app_path: require("@/assets/image/tuangou.png"),
          // style:'border-color: #d3efd0;background: #f7fcf7;',
          describe: "促进商铺对核心客户的精准化宣传和消费刺激" //描述
        },
        meta: {
          title: "社区团购",
          noCache: true,
          display: {
            children: [
              "supplierManagement",
              "settleManagement",
              "leaderApplication",
              "leaderManagement",
              "withdrawApplication",
              "stockManagement",
              "supplierIncomeStatistics",
              "leaderSetting",
              "commityGoodsManagement"
            ]
          }
        }
      },

      {
        path: "themeColor", // 主题配色
        component: () => import("@/views/application/themeColor"),
        name: "themeColor",
        app_is_model: true, //是否主模块
        app_index: "theme", //权限标识
        app_model: "tool", //分配模块
        app_param: {
          app_path: require("@/assets/image/peise.png"),
          style: "border-color: #d3efd0;background: #f7fcf7;",
          describe: "多种系统配色，多种前端风格" //描述
        },
        meta: { title: "主题配色", icon: "demopage", noCache: true }
      },
      {
        path: "activityLike", // 活动点赞
        component: () => import("@/views/application/activityLike"),
        name: "activityLike",
        app_is_model: true, //是否主模块
        app_index: "praise", //权限标识
        app_model: "marketing", //分配模块
        app_param: {
          app_path: require("@/assets/image/jizan.png"),
          // style:'border-color: #d3efd0;background: #f7fcf7;',
          describe: "简单实用，快速裂变" //描述
        },
        meta: { title: "集赞拓客", icon: "demopage", noCache: true }
      },
      {
        path: 'treasure', // 任务宝
        component: () => import('@/views/application/treasure'),
        name: 'treasure',
        app_is_model:true,//是否主模块
        app_index:'assist',//权限标识
        app_model:'marketing',//分配模块
        app_param:{
          app_path:require('@/assets/image/renwubao.png'),
          // style:'border-color: #d3efd0;background: #f7fcf7;',
          describe:'玩转服务号，吸粉首选',//描述
        },
        meta: { title: '任务宝', icon: 'demopage', noCache: true }
      },
      {
        path: 'scrambleTime', // 限时抢卷
        component: () => import('@/views/application/scrambleTime'),
        name: 'scrambleTime',
        // hidden: true,
        app_is_model: true, //是否主模块
        app_index: 'timeCoupon',
        app_model: "marketing", //分配模块
        app_param: {
          app_path: require("@/assets/image/xianshiqiangjuan.png"),
          // style:'border-color: #d3efd0;background: #f7fcf7;',
          describe: "限时抢券" //描述
        },
        meta: { title: '限时抢券', icon: 'demopage','groupMenuTitle': '应用中心', groupTitle: '限时抢券', noCache: true ,display:{
          roote:'/application',
          children:['scrambleTime','collectCoupons',]
        }
      }
      },
      {
        path: 'collectCoupons', // 领劵中心
        component: () => import('@/views/application/collectCoupons'),
        name: 'collectCoupons',
        meta: { title: '领劵中心', icon: 'recycle', noCache: true}
        // meta: { title: '平台管理员', 'groupMenuTitle': '装修平台', groupTitle: '平台管理员', icon: 'recycle', noCache: true }
      },
      {
        path: "blessingBag", // 福袋
        component: () => import("@/views/application/blessingBag"),
        name: "blessingBag",
        // hidden: true,
        app_is_model: true, //是否主模块
        app_index: 'blessing',
        app_model: "marketing", //分配模块
        app_param: {
          app_path: require("@/assets/image/fudaiY.png"),
          // style:'border-color: #d3efd0;background: #f7fcf7;',
          describe: "集福袋赢好礼，裂变吸粉" //描述
        },
        meta: {
          title: "福袋",
          icon: "demopage",
          noCache: true,
        }
      },
      {
        path: "bagSetting", // 福袋
        component: () => import("@/views/application/bagSetting"),
        name: "bagSetting",
        hidden: true,
        meta: { title: "福袋", icon: "demopage", noCache: true,toRoote: { path: "/application/blessingBag", open: ["/application"] }}
      },
      
      {
        path: "giftCards", // 赠送福卡
        component: () => import("@/views/application/giftCards"),
        name: "giftCards",
        hidden: true,
        meta: { title: "赠送福卡", icon: "demopage", noCache: true }
      },
      {
        path: "freeofCharge", // 分享免单
        component: () => import("@/views/application/freeofCharge"),
        name: "freeofCharge",
        // hidden: true,
        app_is_model: true, //是否主模块
        app_index: 'free',
        app_model: "marketing", //分配模块
        app_param: {
          app_path: require("@/assets/image/miandan.png"),
          // style:'border-color: #d3efd0;background: #f7fcf7;',
          describe: "超级裂变，成本可控" //描述
        },
        meta: {
          title: "分享免单",
          icon: "demopage",
          'groupMenuTitle': '应用中心',
           groupTitle: '分享免单',
          noCache: true,
          display:{
            roote:'/application',
            children:['freeofCharge','freeofChargeSet','freeofClassify','freeoForder']
          },
        }
      },
      {
        path: "phoneBillSetting", // 话费
        component: () => import("@/views/application/phoneBillSetting"),
        name: "phoneBillSetting",
        // hidden: true,
        app_is_model: true, //是否主模块
        app_index: 'phonebill',
        app_model: "marketing", //分配模块
        app_param: { 
          app_path: require("@/assets/image/icon-phoneBill.png"),
          // style:'border-color: #d3efd0;background: #f7fcf7;',
          describe: "话费充值，赚钱吸粉" //描述
        },
        meta: {
          title: "话费充值",
          icon: "demopage",
          noCache: true,
          groupMenuTitle: '应用中心',
          groupTitle: '话费',
          display:{
            roote:'/application',
            children:['phoneBillSetting','phoneBillOrder']
          }
        }
    },
      {
        path: 'freeofChargeAdd', // 添加活动
        component: () => import('@/views/application/freeofChargeAdd'),
        name: 'freeofChargeAdd',
        hidden:true,
        meta: { title: '添加活动', icon: 'demopage',noCache: true,  toRoote: { path: '/application/freeofChargeAdd', open: ['/application'] }}
      },
      {
        path: 'freeofChargeSet', // 分享免单设置
        component: () => import('@/views/application/freeofChargeSet'),
        name: 'freeofChargeSet',
        meta: { title: '免单设置', icon: 'demopage',noCache: true,}
      },
      {
        path: 'freeofClassify', // 分享免单设置
        component: () => import('@/views/application/freeofClassify'),
        name: 'freeofClassify',
        meta: { title: '免单分类', icon: 'demopage',noCache: true,}
      },
      {
        path: 'freeoForder', // 订单列表
        component: () => import('@/views/application/freeoForder'),
        name: 'freeoForder',
        meta: { title: '免单订单', icon: 'demopage',noCache: true}
      },
  
      {
        path: 'freeoFparticipate', // 参与详情
        component: () => import('@/views/application/freeoFparticipate'),
        name: 'freeoFparticipate',
        hidden:true,
        meta: { title: '参与详情', icon: 'demopage',noCache: true,  toRoote: { path: '/application/freeoFparticipate', open: ['/application'] }}
      },
      
      {
        path: 'freeoHelp', // 助力详情
        component: () => import('@/views/application/freeoHelp'),
        name: 'freeoHelp',
        hidden:true,
        meta: { title: '助力详情', icon: 'demopage',noCache: true,  toRoote: { path: '/application/freeoHelp', open: ['/application'] }}
      },
      

      {
        path: "phoneBillOrder", // 话费订单
        component: () => import("@/views/application/phoneBillOrder"),
        name: "phoneBillOrder",
        hidden: false,
        meta: { title: "话费订单", icon: "demopage", noCache: true }
      },
      {
        path: "cardBag", // 卡包
        component: () => import("@/views/application/CardBag"),
        name: "cardBag",
        // hidden: true,
        app_is_model: true, //是否主模块
        app_index: 'card_bag',
        app_model: "marketing", //分配模块
        app_param: { 
          app_path: require("@/assets/image/icon-cardBag.png"),
          // style:'border-color: #d3efd0;background: #f7fcf7;',
          describe: "适用于到店核销，消耗购买次数的业务场景" //描述
        },
        meta: {
          title: "卡包",
          icon: "demopage",
          groupMenuTitle: '应用中心',
          groupTitle: '卡包',
          noCache: true,
          display:{
            roote:'/application',
            children:['cardBag','cardBagCategory','cardBagCategoryRecord','cardBagPurchaseRecord','cardBagUsers','cardBagCode','cardBagSetting']
          }
        }
      },
      
      {
        path: "cardBagCategory", // 卡包分类
        component: () => import("@/views/application/cardBagCategory"),
        name: "cardBagCategory",
        hidden: false,
        meta: { title: "卡包分类", icon: "demopage", noCache: true }
      },
      {
        path: "cardBagCategoryRecord", // 卡包使用记录
        component: () => import("@/views/application/cardBagCategoryRecord"),
        name: "cardBagCategoryRecord",
        hidden: false,
        meta: { title: "使用记录", icon: "demopage", noCache: true }
      },
      {
        path: "cardBagPurchaseRecord", // 卡包购买记录
        component: () => import("@/views/application/cardBagPurchaseRecord"),
        name: "cardBagPurchaseRecord",
        hidden: false,
        meta: { title: "购买记录", icon: "demopage", noCache: true }
      },
      {
        path: "cardBagUsers", // 卡包用户列表
        component: () => import("@/views/application/cardBagUsers"),
        name: "cardBagUsers",
        hidden: false,
        meta: { title: "用户列表", icon: "demopage", noCache: true }
      },
      {
        path: "cardBagCode", // 卡包用户兑换码
        component: () => import("@/views/application/cardBagCode"),
        name: "cardBagCode",
        hidden: false,
        meta: { title: "兑换码", icon: "demopage", noCache: true }
      },
      {
        path: "cardBagSetting", // 卡包设置
        component: () => import("@/views/application/cardBagSetting"),
        name: "cardBagSetting",
        hidden: false,
        meta: { title: "设置", icon: "demopage", noCache: true }
      },
      {
        path: "cardBagEdit", // 卡包新增或者编辑
        component: () => import("@/views/application/cardBagEdit"),
        name: "cardBagEdit",
        hidden: false,
        meta: { title: "卡包编辑", icon: "demopage", noCache: true }
      },

      {
        path: "paymentMarketing", // 支付营销
        component: () => import("@/views/application/paymentMarketing"),
        name: "paymentMarketing",
        // hidden: true,
        app_is_model: true, //是否主模块
        app_index: 'paymarketing',
        app_model: "marketing", //分配模块
        app_param: {
          app_path: require("@/assets/image/zhifuyingxiao2.png"),
          // style:'border-color: #d3efd0;background: #f7fcf7;',
          describe: "当消费者支付完成后，商户进行的二次营销" //描述
        },
        meta: {
          title: "支付营销",
          icon: "demopage",
          noCache: true,
        }
      },
      {
        path: 'paymentMarketingAdd', // 添加活动
        component: () => import('@/views/application/paymentMarketingAdd'),
        name: 'paymentMarketingAdd',
        hidden:true,
        meta: { title: '添加活动', icon: 'demopage',noCache: true,  toRoote: { path: '/application/paymentMarketing', open: ['/application'] }}
      },
      {
        path: 'rewardRecord', // 添加活动
        component: () => import('@/views/application/rewardRecord'),
        name: 'rewardRecord',
        hidden:true,
        meta: { title: '参与记录', icon: 'demopage',noCache: true,  toRoote: { path: '/application/paymentMarketing', open: ['/application'] }}
      },
      {
        path: "themeColorAdd", // 主题配色/编辑
        component: () => import("@/views/application/themeColorAdd"),
        name: "themeColorAdd",
        hidden: true,
        meta: {
          title: "主题配色",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/application/themeColor", open: ["/application"] }
        }
      },

      {
        path: "supplierManagement", // 供应商管理
        component: () =>
          import("@/views/community-purchase/supplierManagement"),
        name: "supplierManagement",
        meta: {
          title: "供应商列表",
          groupMenuTitle: "供应商管理",
          groupTitle: "供应商管理",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/application/groupBuy", open: ["/application"] }
        }
      },
      {
        path: "supplierManagementAdd", // 添加供应商
        component: () =>
          import("@/views/community-purchase/supplierManagementAdd"),
        name: "supplierManagementAdd",
        hidden: true,
        meta: {
          title: "供应商添加",
          icon: "demopage",
          noCache: true,
          toRoote: {
            path: "/application/supplierManagement",
            open: ["/application"]
          }
        }
      },
      {
        path: "settleManagement", // 供应商管理
        component: () => import("@/views/community-purchase/settleManagement"),
        name: "settleManagement",
        meta: {
          title: "结算列表",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/application/groupBuy", open: ["/application"] }
        }
      },
      {
        path: "settleManagementDetail", // 添加供应商
        component: () =>
          import("@/views/community-purchase/settleManagementDetail"),
        name: "settleManagementDetail",
        hidden: true,
        meta: {
          title: "结算详情",
          icon: "demopage",
          noCache: true,
          toRoote: {
            path: "/groupBuy/settleManagement",
            open: ["/application"]
          }
        }
      },
      {
        path: "leaderApplication", // 团长申请列表
        component: () => import("@/views/community-purchase/leaderApplication"),
        name: "leaderApplication",
        meta: {
          title: "团长申请",
          icon: "demopage",
          noCache: true,
          groupTitle: "团长管理",
          toRoote: { path: "/application/groupBuy", open: ["/application"] }
        }
      },
      {
        path: "leaderManagement", // 团长列表
        component: () => import("@/views/community-purchase/leaderManagement"),
        name: "leaderManagement",
        meta: {
          title: "团长列表",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/application/groupBuy", open: ["/application"] }
        }
      },
   
      {
        path: "leaderManagementAdd", // 添加团长
        component: () =>
          import("@/views/community-purchase/leaderManagementAdd"),
        name: "leaderManagementAdd",
        hidden: true,
        meta: {
          title: "团长信息",
          icon: "demopage",
          noCache: true,
          toRoote: {
            path: "/application/leaderManagement",
            open: ["/application"]
          }
        }
      },
      
      {
        path: "commissionSetting", // 佣金设置
        component: () => import("@/views/community-purchase/commissionSetting"),
        name: "commissionSetting",
        hidden: true,
        meta: {
          title: "佣金设置",
          icon: "demopage",
          noCache: true,
          toRoote: {
            path: "/merchandise/merchandiseManagement",
            open: ["/merchandise"]
          }
        }
      },
      {
        path: "withdrawApplication", // 提现申请
        component: () =>
          import("@/views/community-purchase/withdrawApplication"),
        name: "withdrawApplication",
        meta: {
          title: "提现申请",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/application/groupBuy", open: ["/application"] }
        }
      },
      {
        path: "stockManagement", // 备货列表
        component: () => import("@/views/community-purchase/stockManagement"),
        name: "stockManagement",
        meta: {
          title: "备货列表",
          icon: "demopage",
          noCache: true,
          groupTitle: "备货管理",
          toRoote: { path: "/application/groupBuy", open: ["/application"] }
        }
      },
      {
        path: "stockDetail", // 备货详情
        component: () => import("@/views/community-purchase/stockDetail"),
        name: "stockDetail",
        hidden: true,
        meta: {
          title: "备货详情",
          icon: "demopage",
          noCache: true,
          toRoote: {
            path: "/application/stockManagement",
            open: ["/application"]
          }
        }
      },
      // {
      //   path: "supplierIncomeStatistics", // 备货列表
      //   component: () =>
      //     import("@/views/community-purchase/supplierIncomeStatistics"),
      //   name: "supplierIncomeStatistics",
      //   hidden: true,
      //   meta: {
      //     title: "商品收益图",
      //     icon: "demopage",
      //     noCache: true,
      //     toRoote: { path: "/application/groupBuy", open: ["/application"] }
      //   }
      // },
      {
        path: "commityGoodsManagement", // 商品列表
        component: () =>
          import("@/views/community-purchase/commityGoodsManagement"),
        name: "commityGoodsManagement",
        meta: {
          title: "团购商品",
          icon: "demopage",
          noCache: true,
          groupTitle: "商品列表",
          toRoote: { path: "/application/groupBuy", open: ["/application"] }
        }
      },
      {
        path: "leaderSetting",
        component: () => import("@/views/community-purchase/leaderSetting"),
        name: "leaderSetting",
        meta: {
          title: "团购设置",
          icon: "demopage",
          noCache: true,
          groupTitle: "设置",
          toRoote: { path: "/application/groupBuy", open: ["/application"] }
        }
      },

      {
        path: "membershipCardClient", // 会员卡
        component: () => import("@/views/application/membershipCardClient"),
        //在cooking里是否有agent_id,有的话就跳转会员卡商品页面
        redirect:Cookies.get("agent_id")?`${"/application/vipGoodsList"}`:`${"/application/vipList"}`,
        // redirect: "/application/vipGoodsList",
        name: "membershipCardClient",
        app_is_model: true, //是否主模块
        app_index: "member", //权限标识
        app_model: "customer", //分配模块
        app_param: {
          app_path: require("@/assets/image/huiyuanka.png"),
          // style:'border-color: #ffe6ba;background: #fffcf6;',
          describe: "将一次成交变成长期锁定" //描述
        },
        meta: {
          title: "会员卡",
          groupTitle: "客群维护",
          icon: "demopage",
          noCache: true,
          display: {
            roote: "/application",
            children: [
              "vipGoodsList",
              "vipList",
              "vipUserList",
              "vipSetting",
              "vipCodeList",
              "vipOrder"
            ]
          }
        }
      },
      {
        path: "vipList", // 会员卡列表
        component: () => import("@/views/application/vipList"),
        name: "vipList",
        // hidden: true,
        meta: {
          title: "会员卡列表",
          groupMenuTitle: "应用中心",
          groupTitle: "会员卡管理",
          icon: "demopage",
          noCache: true,
          toRoote: {
            path: "/application/membershipCardClient",
            open: ["/application"]
          }
        }
      },
      {
        path: "vipCodeList", // 激活码列表
        component: () => import("@/views/application/vipCodeList"),
        name: "vipCodeList",
        // hidden: true,
        meta: {
          title: "激活码列表",
          icon: "demopage",
          noCache: true,
          toRoote: {
            path: "/application/membershipCardClient",
            open: ["/application"]
          }
        }
      },
      {
        path: "vipOrder", // 会员卡订单
        component: () => import("@/views/application/vipOrder"),
        name: "vipOrder",
        // hidden: true,
        meta: {
          title: "会员卡订单",
          icon: "demopage",
          noCache: true,
          toRoote: {
            path: "/application/membershipCardClient",
            open: ["/application"]
          }
        }
      },
      {
        path: "vipListAdd", // 添加会员卡
        component: () => import("@/views/application/vipListAdd"),
        name: "vipListAdd",
        hidden: true,
        meta: {
          title: "会员卡",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/application/vipList", open: ["/application"] }
        }
      },
      {
        path: "vipUserList", // 会员卡用户列表
        component: () => import("@/views/application/vipUserList"),
        name: "vipUserList",
        // hidden: true,
        meta: {
          title: "会员列表",
          icon: "demopage",
          noCache: true,
          groupTitle: "会员管理",
          toRoote: {
            path: "/application/membershipCardClient",
            open: ["/application"]
          }
        }
      },
      {
        path: "vipGoodsList", // 会员商品列表
        component: () => import("@/views/application/vipGoodsList"),
        name: "vipGoodsList",
        // hidden: true,
        meta: {
          title: "会员商品",
          icon: "demopage",
          noCache: true,
          toRoote: {
            path: "/application/membershipCardClient",
            open: ["/application"]
          }
        }
      },
      {
        path: "vipSetting", // 会员卡设置
        component: () => import("@/views/application/vipSetting"),
        name: "vipSetting",
        // hidden: true,
        meta: {
          title: "会员卡设置",
          icon: "demopage",
          noCache: true,
          groupTitle: "设置",
          toRoote: {
            path: "/application/membershipCardClient",
            open: ["/application"]
          }
        }
      },
      {
        path: "fullReductionMarketing", // 满减
        component: () => import("@/views/application/fullReductionMarketing"),
        name: "fullReductionMarketing",
        hidden: true,
        meta: { title: "满减满送", icon: "demopage", noCache: true }
      },
      {
        path: "couponClient", // 发券宝
        component: () => import("@/views/application/couponClient"),
        name: "couponClient",
        app_is_model: true, //是否主模块
        app_index: "voucher", //权限标识
        app_model: "customer", //分配模块
        app_param: {
          app_path: require("@/assets/image/fajuanbao.png"),
          // style:'border-color: #ffe6ba;background: #fffcf6;',
          describe: "新老顾客进店送券，关注收藏送券，定向发券" //描述
        },
        meta: { title: "发券宝", icon: "demopage", noCache: true }
      },
      {
        path: "distributorApplications", // 分销
        component: () => import("@/views/application/distributorApplication"),
        name: "distributorApplicationes",
        //在cooking里是否有agent_id,有的话就跳转分销商品页面
        redirect:Cookies.get("agent_id")?`${"/application/distributorMerchandise"}`:`${"/application/distributorApplication"}`,
        app_is_model:true,//是否主模块
        app_index:'dealer',//权限标识
        app_model:'customer',//分配模块
        app_param:{
          app_path:require('@/assets/image/fenxiao.png'),
          describe: "拓展推广渠道，实现全网分销" //描述
        },
        meta: {
          title: "分销",
          icon: "demopage",
          noCache: true,
          display: {
            roote: "/application",
            children: [
              "distributorMerchandise",
              "distributorApplication",
              "distributorUser",
              "distributorVip",
              "distributorOrders",
              "paidorder",
              "withdrawalApplication",
              "distributorSetting",
              "distributorLevel",
              "distributorPoster"
            ]
          }
        }
      },
      {
        path: "distributorApplication", // 分销用户
        component: () => import("@/views/application/distributorApplication"),
        name: "distributorApplication",
        meta: {
          title: "分销申请",
          groupMenuTitle: "应用中心",
          groupTitle: "分销用户",
          icon: "demopage",
          noCache: true
        }
      },
      {
        path: "distributorUser", // 分销用户
        component: () => import("@/views/application/distributorUser"),
        name: "distributorUser",
        meta: { title: "分销用户", icon: "demopage", noCache: true }
      },
      {
        path: "paidorder", // 付费订单
        component: () => import("@/views/application/paidorder"),
        name: "paidorder",
        meta: { title: "付费订单", icon: "demopage", noCache: true }
      },
      {
        path: "offline", // 分销下线列表
        component: () => import("@/views/application/offline"),
        name: "offline",
        hidden: true,
        meta: { title: "下线列表", icon: "demopage", noCache: true }
      },
      {
        path: "distributorMerchandise", // 分销商品
        component: () => import("@/views/application/distributorMerchandise"),
        name: "distributorMerchandise",
        meta: {
          title: "分销商品",
          groupTitle: "分销管理",
          icon: "demopage",
          noCache: true
        }
      },
      {
        path: "distributorMerchandiseSetting", // 分销佣金设置
        component: () =>
          import("@/views/application/distributorMerchandiseSetting"),
        name: "distributorMerchandiseSetting",
        hidden: true,
        meta: { title: "分销佣金设置", icon: "demopage", noCache: true }
      },
      {
        path: "distributorVip", // 分销会员卡
        component: () => import("@/views/application/distributorVip"),
        name: "distributorVip",
        meta: { title: "分销会员卡", icon: "demopage", noCache: true }
      },
      {
        path: "distributorVipSetting", // 分销会员佣金设置
        component: () => import("@/views/application/distributorVipSetting"),
        name: "distributorVipSetting",
        hidden: true,
        meta: { title: "分销分销会员佣金设置", icon: "demopage", noCache: true }
      },
      {
        path: "distributorOrders", // 分销订单
        component: () => import("@/views/application/distributorOrders"),
        name: "distributorOrders",
        meta: { title: "分销订单", icon: "demopage", noCache: true }
      },
      
      {
        path: "withdrawalApplication", // 提现申请
        component: () => import("@/views/application/withdrawalApplication"),
        name: "withdrawalApplication",
        meta: { title: "提现申请", icon: "demopage", noCache: true }
      },
      {
        path: "distributorSetting", // 分销设置
        component: () => import("@/views/application/distributorSetting"),
        name: "distributorSetting",
        meta: {
          title: "分销设置",
          groupTitle: "设置",
          icon: "demopage",
          noCache: true
        }
      },
      {
        path: "distributorLevel", // 分销dj
        component: () => import("@/views/application/distributorLevel"),
        name: "distributorLevel",
        meta: { title: "分销等级", icon: "demopage", noCache: true }
      },
      {
        path: "distributorLevelAdd", // 分销djadd
        component: () => import("@/views/application/distributorLevelAdd"),
        name: "distributorLevelAdd",
        hidden: true,
        meta: { title: "分销等级修改", icon: "demopage", noCache: true }
      },
      // {
      //   path: 'distributorPoster', // 分销海报
      //   component: () => import('@/views/application/distributorPoster'),
      //   name: 'distributorPoster',
      //   meta: { title: '分销海报', icon: 'demopage', noCache: true }
      // },

      {
        path: "couponClientNew", // 新客进店
        component: () => import("@/views/application/couponClientNew"),
        name: "couponClientNew",
        hidden: true,
        meta: {
          title: "新客进店有礼",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/application/couponClient", open: ["/application"] }
        }
      },
      {
        path: "couponClientOld", // 老客进店
        component: () => import("@/views/application/couponClientOld"),
        name: "couponClientOld",
        hidden: true,
        meta: {
          title: "老客进店有礼",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/application/couponClient", open: ["/application"] }
        }
      },
      {
        path: "couponClientFixed", // 定向发券
        component: () => import("@/views/application/couponClientFixed"),
        name: "couponClientFixed",
        hidden: true,
        meta: {
          title: "定向发券",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/application/couponClient", open: ["/application"] }
        }
      },
      {
        path: "couponClientFissure", // 关注收藏有礼
        component: () => import("@/views/application/couponClientFissure"),
        name: "couponClientFissure",
        hidden: true,
        meta: {
          title: "关注收藏有礼",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/application/couponClient", open: ["/application"] }
        }
      },
      {
        path: "sign", // 签到
        component: () => import("@/views/application/sign"),
        name: "sign",
        hidden: true,
        meta: {
          title: "签到",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/application/sign", open: ["/application"] }
        }
      },
      {
        path: "messageTool", // 消息推送
        component: () => import("@/views/application/messageTool"),
        redirect: "/application/notification",
        name: "messageTool",
        app_is_model: true, //是否主模块
        app_index: "message", //权限标识
        app_model: "tool", //分配模块
        app_param: {
          app_path: require("@/assets/image/tuisong.png"),
          // style:'border-color: #ffdbcb;background: #fff9f7;',
          describe: "短信、模板消息、图文主动推送" //描述
        },
        meta: {
          title: "消息推送",
          icon: "demopage",
          groupTitle: "配套工具",
          noCache: true,
          display: {
            roote: "/application",
            children: [
              "notification",
              "smsSettings",
              "smsTemplate",
              "weChatTemplate",
              "imgtxt",
              "imgPushList",
              "imgQueue",
              "imgMsgList",
              "wechartCard"
            ]
          }
        }
      },
      {
        path: "notification", // 消息通知
        component: () => import("@/views/application/notification"),
        name: "notification",
        meta: {
          title: "消息通知",
          groupMenuTitle: "应用中心",
          groupTitle: "消息推送",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/application/messageTool", open: ["/application"] }
        }
      },
      {
        path: "smsSettings", // 短信设置
        component: () => import("@/views/application/smsSettings"),
        name: "smsSettings",
        // hidden: true,
        meta: {
          title: "短信设置",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/application/messageTool", open: ["/application"] }
        }
      },
      {
        path: "notificationAdd", // 短信设置
        component: () => import("@/views/application/notificationAdd"),
        name: "notificationAdd",
        meta: {
          title: "短信设置",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/application/messageTool", open: ["/application"] }
        }
      },
      {
        path: "smsTemplate", // 短信模板
        component: () => import("@/views/application/smsTemplate"),
        name: "smsTemplate",
        meta: {
          title: "短信模板",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/application/messageTool", open: ["/application"] }
        }
      },
      {
        path: "smsTemplateAdd", // 短信模板添加
        component: () => import("@/views/application/smsTemplateAdd"),
        name: "smsTemplateAdd",
        hidden: true,
        meta: {
          title: "短信模板",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/application/messageTool", open: ["/application"] }
        }
      },
      {
        path: "imgtxt", // 图文连接
        component: () => import("@/views/application/imgtxt"),
        name: "imgtxt",
        meta: {
          title: "图文连接",
          icon: "demopage",
          noCache: true,
          groupTitle: "消息触达",
          toRoote: { path: "/application/messageTool", open: ["/application"] }
        }
      },
      {
        path: "wechartCard", // 推送记录
        component: () => import("@/views/application/wechartCard"),
        name: "wechartCard",
        meta: {
          title: "小程序卡片",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/application/messageTool", open: ["/application"] }
        }
      },
      {
        path: "wechartCardAdd", // 推送记录
        component: () => import("@/views/application/wechartCardAdd"),
        name: "wechartCardAdd",
        hidden: true,
        meta: {
          title: "小程序卡片",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/application/messageTool", open: ["/application"] }
        }
      },
      {
        path: "imgMsgList", // 模板消息
        component: () => import("@/views/application/imgMsgList"),
        name: "imgMsgList",
        meta: {
          title: "模板消息",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/application/messageTool", open: ["/application"] }
        }
      },
      {
        path: "imgMsgListAdd", // 模板消息
        component: () => import("@/views/application/imgMsgListAdd"),
        name: "imgMsgListAdd",
        hidden: true,
        meta: {
          title: "模板消息",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/application/messageTool", open: ["/application"] }
        }
      },
      {
        path: "imgtxtEdit", // 素材管理
        component: () => import("@/views/application/imgtxtEdit"),
        name: "imgtxtEdit",
        hidden: true,
        meta: {
          title: "素材管理",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/application/messageTool", open: ["/application"] }
        }
      },
      {
        path: "imgPushList", // 推送消息
        component: () => import("@/views/application/imgPushList"),
        name: "imgPushList",
        meta: {
          title: "推送消息",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/application/messageTool", open: ["/application"] }
        }
      },
      {
        path: "imgQueue", // 推送记录
        component: () => import("@/views/application/imgQueue"),
        name: "imgQueue",
        meta: {
          title: "推送记录",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/application/messageTool", open: ["/application"] }
        }
      },

      // {
      //   path: 'weChatTemplate', // 公众号模板
      //   component: () => import('@/views/application/weChatTemplate'),
      //   name: 'weChatTemplate',
      //   hidden: true,
      //   meta: { title: '公众号模板', icon: 'demopage', noCache: true, toRoote: { path: '/application/messageTool', open: ['/application'] }}
      // },
      {
        path: "weChatTemplateAdd", // 短信模板添加
        component: () => import("@/views/application/weChatTemplateAdd"),
        name: "weChatTemplateAdd",
        hidden: true,
        meta: {
          title: "公众号模板",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/application/messageTool", open: ["/application"] }
        }
      },
      {
        path: "notificationDeal", // 交易提醒设置
        component: () => import("@/views/application/notificationDeal"),
        name: "notificationDeal",
        hidden: true,
        meta: {
          title: "交易提醒设置",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/application/messageTool", open: ["/application"] }
        }
      },
      {
        path: "notificationMarketing", // 营销提醒设置
        component: () => import("@/views/application/notificationMarketing"),
        name: "notificationMarketing",
        hidden: true,
        meta: {
          title: "营销提醒设置",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/application/messageTool", open: ["/application"] }
        }
      },
      {
        path: "notificationPlatform", // 平台短信设置
        component: () => import("@/views/application/notificationPlatform"),
        name: "notificationPlatform",
        hidden: true,
        meta: {
          title: "平台短信设置",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/application/messageTool", open: ["/application"] }
        }
      },
      {
        path: "cardPassword", // 卡密串码主页
        component: () => import("@/views/application/cardPassword"),
        name: "cardPassword",
        app_is_model: true, //是否主模块
        app_index: "kammi", //权限标识
        app_model: "tool", //分配模块
        app_param: {
          app_path: require("@/assets/image/kami.png"),
          // style:'border-color: #ffdbcb;background: #fff9f7;',
          describe: "跨平台的多场景使用、和任意第三方对接" //描述
        },
        meta: { title: "卡密串码", icon: "demopage", noCache: true }
      },
      {
        path: "cardPasswordAdd", // 添加卡密
        component: () => import("@/views/application/cardPasswordAdd"),
        name: "cardPasswordAdd",
        hidden: true,
        meta: {
          title: "卡密串码",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/application/cardPassword", open: ["/application"] }
        }
      },
      {
        path: "cardPasswordEdit", // 卡密管理
        component: () => import("@/views/application/cardPasswordEdit"),
        name: "cardPasswordEdit",
        hidden: true,
        meta: {
          title: "卡密管理",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/application/cardPassword", open: ["/application"] }
        }
      },
      {
        path: "cardSerialCodeList", // 串码管理
        component: () => import("@/views/application/cardSerialCodeList"),
        name: "cardSerialCodeList",
        hidden: true,
        meta: {
          title: "卡密管理",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/application/cardPassword", open: ["/application"] }
        }
      },
      {
        path: "cardPasswordLibrary", // 创建卡密库
        component: () => import("@/views/application/cardPasswordLibrary"),
        name: "cardPasswordLibrary",
        hidden: true,
        meta: {
          title: "创建卡密库",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/application/cardPassword", open: ["/application"] }
        }
      },
      {
        path: "cardSerialCodeAdd", // 串码修改
        component: () => import("@/views/application/cardSerialCodeAdd"),
        name: "cardSerialCodeAdd",
        hidden: true,
        meta: {
          title: "串码",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/application/cardPassword", open: ["/application"] }
        }
      },
      {
        path: "ticketing", // 票务平台
        component: () => import("@/views/application/ticketing"),
        name: "ticketinges",
        app_is_model: true, //是否主模块
        app_index: "ticketing", //权限标识
        app_model: "tool", //分配模块
        app_param: {
          app_path: require("@/assets/image/piaowu.png"),
          // style:'border-color: #ffdbcb;background: #fff9f7;',
          describe: "接入第三方票务，线上下单快速入园" //描述
        },
        meta: {
          title: "票务",
          icon: "demopage",
          noCache: true,
          display: {
            roote: "/application",
            children: ["ticketing", "ticketingmer","ticketingmeryin"]
          }
        }
      },
      {
        path: "ticketing", // 票务平台
        component: () => import("@/views/application/ticketing"),
        name: "ticketing",
        meta: {
          title: "票务平台",
          groupMenuTitle: "应用中心",
          groupTitle: "票务中心",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/application/ticketing", open: ["/application"] }
        }
      },
      {
        path: "ticketingmer", // 票务商品
        component: () => import("@/views/application/ticketingmer"),
        name: "ticketingmer",
        meta: {
          title: "票务商品",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/application/ticketing", open: ["/application"] }
        }
      },
      {
        path: "ticketingmeryin", // 添加银科环企票务商品
        component: () => import("@/views/application/ticketingmeryin"),
        name: "ticketingmeryin",
        hidden:true,
        meta: {
          title: "添加银科环企票务商品",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/application/ticketing", open: ["/application"] }
        }
      },
      {
        path: "cannonfodder", //炮灰域名
        component: () => import("@/views/application/cannonfodder"),
        name: "cannonfodders",
        app_is_model: true, //是否主模块
        app_index: "falseUrl", //权限标识
        app_model: "tool", //分配模块
        app_param: {
          app_path: require("@/assets/image/paohui.png"),
          // style:'border-color: #ffdbcb;background: #fff9f7;',
          describe: "防止活动页面被封，为做活动保驾护航" //描述
        },
        meta: {
          title: "炮灰域名",
          groupMenuTitle: "应用中心",
          // groupTitle: "直播",
          icon: "demopage",
          noCache: true,
          display: {
            roote: "/application",
            children: ["cannonfodder",'cannonfodderhis']
          }
        }
      },
       {
        path: "cannonfodder", // 炮灰设置
        component: () => import("@/views/application/cannonfodder"),
        name: "cannonfodder",
        meta: {
              title: "设置",
              groupMenuTitle: "应用中心",
              // groupTitle: "设置",
              icon: "demopage",
              noCache: true,
              toRoote: { path: "/application/cannonfodder", open: ["/application"] }
        }
      },
       {
        path: "cannonfodderhis", // 被封记录
        component: () => import("@/views/application/cannonfodderhis"),
        name: "cannonfodderhis",
        meta: {
          title: "被封记录",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/application/cannonfodderhis", open: ["/application"] }
        }
      },
      
      // {
      //   path: "cannonfodderhis", // 直播商品
      //   component: () => import("@/views/application/cannonfodderhis"),
      //   name: "cannonfodderhis",
      //   meta: { title: "被封历史", icon: "demopage", noCache: true }
      // },
      {
        path: "livelist", // 直播
        component: () => import("@/views/application/livelist"),
        name: "livelistes",
        app_is_model: true, //是否主模块
        app_index: "live", //权限标识
        app_model: "tool", //分配模块
        app_param: {
          app_path: require("@/assets/image/zhibo.png"),
          // style:'border-color: #ffdbcb;background: #fff9f7;',
          describe: "打破传统，直播带货电商尝鲜" //描述
        },
        meta: {
          title: "直播",
          groupMenuTitle: "直播",
          groupTitle: "直播",
          icon: "demopage",
          noCache: true,
          display: {
            roote: "/application",
            children: [
              "livelist",
              "livetelecastSet",
              "livegoods",
              "liveapplication"
            ]
          }
        }
      },
      {
        path: "livelist", // 基础设置
        component: () => import("@/views/application/livelist"),
        name: "livelist",
        meta: {
          title: "直播列表",
          groupMenuTitle: "应用中心",
          icon: "demopage",
          noCache: true
        }
      },
      {
        path: "livetelecastSet", // 基础设置
        component: () => import("@/views/application/livelistSet"),
        name: "livetelecastSet",
        meta: { title: "直播设置", icon: "demopage", noCache: true }
      },
      {
        path: "addlivestudio", // 添加直播间
        component: () => import("@/views/application/addlivestudio"),
        name: "AddLiveStudio",
        hidden: true,
        meta: { title: "添加直播间", icon: "demopage", noCache: true }
      },
      {
        path: "livegoods", // 直播商品
        component: () => import("@/views/application/livegoods"),
        name: "livegoods",
        meta: { title: "直播商品", icon: "demopage", noCache: true }
      },
      {
        path: "addlivegoods", // 添加直播商品
        component: () => import("@/views/application/addlivegoods"),
        name: "AddLiveGoods",
        hidden: true,
        meta: { title: "添加直播商品", icon: "demopage", noCache: true }
      },
      {
        path: "liveapplication", // 直播申请
        component: () => import("@/views/application/liveapplication"),
        name: "liveapplication",
        meta: { title: "直播申请", icon: "demopage", noCache: true }
      },
      {
        path: "proxysettings", // 代理
        component: () => import("@/views/application/proxysettings"),
        name: "proxysettingsdata",
        app_is_model: true, //是否主模块
        app_index: 'agent', //权限标识
        app_model: "tool", //分配模块
        app_param: {
          app_path: require("@/assets/image/daili.png"),
          // style:'border-color: #ffdbcb;background: #fff9f7;',
          describe: "多区域数据分离" //描述
        },
        meta: {
          title: "城市代理",
          groupMenuTitle: "设置",
          groupTitle: "代理",
          icon: "demopage",
          noCache: true,
          display: {
            roote: "/application",
            children: [
              "proxysettings",
              "proxyauthority",
              "agentlist",
              "agentadd",
              "regionlist",
              "billdetails",
              "refunddetails",
              "merchantaccount",
              "agencyaccount",
              "withdraw",
            ]
          }
        },
      },
      {
        path: "proxysettings", // 代理权限
        component: () => import("@/views/application/proxysettings"),
        name: "proxysettings",
        meta: {
          title: "代理设置",
          // groupMenuTitle: "代理设置",
          groupTitle: "代理",
          icon: "demopage",
          noCache: true
        }
      },
      {
        path: "proxyauthority", // 代理权限
        component: () => import("@/views/application/proxyauthority"),
        name: "proxyauthority",
        meta: {
          title: "代理权限",
          // groupMenuTitle: "代理设置",
          // groupTitle: "代理",
          icon: "demopage",
          noCache: true
        }
      },
      {
        path: "agentlist", // 代理列表
        component: () => import("@/views/application/agentlist"),
        name: "agentlist",
        meta: {
          title: "代理列表",
          // groupMenuTitle: "代理列表",
          // groupTitle: "代理",
          icon: "demopage",
          noCache: true
        }
      },
      {
        path: "agentadd", // 新增代理
        component: () => import("@/views/application/agentadd"),
        name: "agentadd",
        hidden: true,
        meta: {
          title: "新增代理",
          // groupMenuTitle: "代理列表",
          // groupTitle: "代理",
          icon: "demopage",
          noCache: true,
          toRoote:{ path: '/application/proxysettings',open:["/application"] }
        }
      },
      {
        path: "regionlist", // 新增代理
        component: () => import("@/views/application/regionlist"),
        name: "regionlist",
        meta: {
          title: "地区列表",
          // groupMenuTitle: "代理列表",
          groupTitle: "地区",
          icon: "demopage",
          noCache: true,
          toRoote:{ path: '/application/proxysettings',open:["/application"] }
        }
      },
      {
        path: "refunddetails", // 退款明细
        component: () => import("@/views/application/refunddetails"),
        name: "refunddetails",
        meta: {
          title: "退款明细",
          groupTitle: "财务",
          icon: "demopage",
          noCache: true,
          toRoote:{ path: '/application/proxysettings',open:["/application"] }
        }
      },
      {
        path: "merchantaccount", // 商家账户
        component: () => import("@/views/application/merchantaccount"),
        name: "merchantaccount",
        meta: {
          title: "商家账户",
          // groupTitle: "财务",
          icon: "demopage",
          noCache: true,
          toRoote:{ path: '/application/proxysettings',open:["/application"] }
        }
      },
      {
        path: "agencyaccount", // 代理账户
        component: () => import("@/views/application/agencyaccount"),
        name: "agencyaccount",
        meta: {
          title: "代理账户",
          // groupTitle: "财务",
          icon: "demopage",
          noCache: true,
          toRoote:{ path: '/application/proxysettings',open:["/application"] }
        }
      },
      {
        path: "withdraw", // 提现申请
        component: () => import("@/views/application/withdraw"),
        name: "withdraw",
        meta: {
          title: "提现申请",
          // groupTitle: "财务",
          icon: "demopage",
          noCache: true,
          toRoote:{ path: '/application/proxysettings',open:["/application"] },
        }
      },
      
      {
        path: "themeconstruction", // 主题造节主页
        component: () => import("@/views/application/themeconstruction"),
        name: "themeconstruction",
        app_is_model: true, //是否主模块
        app_index: "festival", //权限标识
        app_model: "tool", //分配模块
        app_param: {
          app_path: require("@/assets/image/zaojie.png"),
          describe: "营造消费场景，提高商品曝光度" //描述
        },
        meta: { title: "主题造节", icon: "demopage", noCache: true }
      },
      {
        path: "themeconstructionAdd", // 添加造节
        component: () => import("@/views/application/themeconstructionAdd"),
        name: "themeconstructionAdd",
        hidden: true,
        meta: {
          title: "添加活动",
          icon: "demopage",
          noCache: true,
          toRoote: { path: "/application/themeconstructionAdd", open: ["/application"] }
        }
      },
      {
        path: "themeconstructionHome", // 添加造节
        component: () => import("@/views/application/themeconstructionHome"),
        name: "themeconstructionHome",
        hidden: true,
        meta: {
          title: "添加活动",
          icon: "demopage",
          noCache: true,
          isCustom:true,
          toRoote: { path: "/application/themeconstructionHome", open: ["/application"] }
        }
      },
    ]
  }
];
